ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Configuration for EC2 instance autostartup

    IT Discussion
    11
    31
    3.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      stacksofplates
      last edited by

      I’m confused. What do you mean by “autopower on”

      S 1 Reply Last reply Reply Quote 1
      • D
        Dashrender
        last edited by

        The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

        S 1 Reply Last reply Reply Quote 0
        • J
          jmoore @Sadee
          last edited by

          @sadee said in Configuration for EC2 instance autostartup:

          Need script and procedure for Amazon EC2 instance autopower ON

          that doesn't make sense to me either. sounds like he wants someone to write a script and tell him how to implement it

          1 Reply Last reply Reply Quote 0
          • S
            stacksofplates @Dashrender
            last edited by

            @dashrender said in Configuration for EC2 instance autostartup:

            The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

            Which is weird. You pay even if it’s off. So just bring up instances when you need them.

            J 1 Reply Last reply Reply Quote 1
            • J
              JaredBusch @stacksofplates
              last edited by

              @stacksofplates said in Configuration for EC2 instance autostartup:

              @dashrender said in Configuration for EC2 instance autostartup:

              The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

              Which is weird. You pay even if it’s off. So just bring up instances when you need them.

              Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

              But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

              S 1 Reply Last reply Reply Quote 0
              • S
                stacksofplates @JaredBusch
                last edited by

                @jaredbusch said in Configuration for EC2 instance autostartup:

                @stacksofplates said in Configuration for EC2 instance autostartup:

                @dashrender said in Configuration for EC2 instance autostartup:

                The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

                Which is weird. You pay even if it’s off. So just bring up instances when you need them.

                Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

                But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

                I wonder what the use case is for that vs just bring them up when you need them?

                T 1 Reply Last reply Reply Quote 0
                • S
                  scottalanmiller
                  last edited by

                  I think we need more info as to the goals.

                  1 Reply Last reply Reply Quote 0
                  • R
                    Reid Cooper
                    last edited by

                    I'll add my voice... I'm lost.

                    1 Reply Last reply Reply Quote 0
                    • T
                      travisdh1 @stacksofplates
                      last edited by

                      @stacksofplates said in Configuration for EC2 instance autostartup:

                      @jaredbusch said in Configuration for EC2 instance autostartup:

                      @stacksofplates said in Configuration for EC2 instance autostartup:

                      @dashrender said in Configuration for EC2 instance autostartup:

                      The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

                      Which is weird. You pay even if it’s off. So just bring up instances when you need them.

                      Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

                      But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

                      I wonder what the use case is for that vs just bring them up when you need them?

                      Automatically creating/destroying cloud instances on an as-needed basis would be a great thing to automate, actually.

                      R S 2 Replies Last reply Reply Quote 0
                      • R
                        Reid Cooper @travisdh1
                        last edited by

                        @travisdh1 said in Configuration for EC2 instance autostartup:

                        @stacksofplates said in Configuration for EC2 instance autostartup:

                        @jaredbusch said in Configuration for EC2 instance autostartup:

                        @stacksofplates said in Configuration for EC2 instance autostartup:

                        @dashrender said in Configuration for EC2 instance autostartup:

                        The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

                        Which is weird. You pay even if it’s off. So just bring up instances when you need them.

                        Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

                        But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

                        I wonder what the use case is for that vs just bring them up when you need them?

                        Automatically creating/destroying cloud instances on an as-needed basis would be a great thing to automate, actually.

                        Creating and destroying is not turning on and off.

                        T S 2 Replies Last reply Reply Quote 0
                        • T
                          travisdh1 @Reid Cooper
                          last edited by

                          @reid-cooper said in Configuration for EC2 instance autostartup:

                          @travisdh1 said in Configuration for EC2 instance autostartup:

                          @stacksofplates said in Configuration for EC2 instance autostartup:

                          @jaredbusch said in Configuration for EC2 instance autostartup:

                          @stacksofplates said in Configuration for EC2 instance autostartup:

                          @dashrender said in Configuration for EC2 instance autostartup:

                          The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

                          Which is weird. You pay even if it’s off. So just bring up instances when you need them.

                          Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

                          But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

                          I wonder what the use case is for that vs just bring them up when you need them?

                          Automatically creating/destroying cloud instances on an as-needed basis would be a great thing to automate, actually.

                          Creating and destroying is not turning on and off.

                          I know. Powering on should be a simple API call from another computer that's currently powered on. Might take some scripting , but shouldn't be super difficult.

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            scottalanmiller @travisdh1
                            last edited by

                            @travisdh1 said in Configuration for EC2 instance autostartup:

                            @reid-cooper said in Configuration for EC2 instance autostartup:

                            @travisdh1 said in Configuration for EC2 instance autostartup:

                            @stacksofplates said in Configuration for EC2 instance autostartup:

                            @jaredbusch said in Configuration for EC2 instance autostartup:

                            @stacksofplates said in Configuration for EC2 instance autostartup:

                            @dashrender said in Configuration for EC2 instance autostartup:

                            The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

                            Which is weird. You pay even if it’s off. So just bring up instances when you need them.

                            Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

                            But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

                            I wonder what the use case is for that vs just bring them up when you need them?

                            Automatically creating/destroying cloud instances on an as-needed basis would be a great thing to automate, actually.

                            Creating and destroying is not turning on and off.

                            I know. Powering on should be a simple API call from another computer that's currently powered on. Might take some scripting , but shouldn't be super difficult.

                            Should be done via the Amazon API, how would another computer do it?

                            T 1 Reply Last reply Reply Quote 1
                            • T
                              travisdh1 @scottalanmiller
                              last edited by

                              @scottalanmiller said in Configuration for EC2 instance autostartup:

                              @travisdh1 said in Configuration for EC2 instance autostartup:

                              @reid-cooper said in Configuration for EC2 instance autostartup:

                              @travisdh1 said in Configuration for EC2 instance autostartup:

                              @stacksofplates said in Configuration for EC2 instance autostartup:

                              @jaredbusch said in Configuration for EC2 instance autostartup:

                              @stacksofplates said in Configuration for EC2 instance autostartup:

                              @dashrender said in Configuration for EC2 instance autostartup:

                              The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

                              Which is weird. You pay even if it’s off. So just bring up instances when you need them.

                              Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

                              But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

                              I wonder what the use case is for that vs just bring them up when you need them?

                              Automatically creating/destroying cloud instances on an as-needed basis would be a great thing to automate, actually.

                              Creating and destroying is not turning on and off.

                              I know. Powering on should be a simple API call from another computer that's currently powered on. Might take some scripting , but shouldn't be super difficult.

                              Should be done via the Amazon API, how would another computer do it?

                              OP sounded like they don't want a human to have to push a button, requires a computer that's running to make the API call.

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                scottalanmiller @travisdh1
                                last edited by

                                @travisdh1 said in Configuration for EC2 instance autostartup:

                                @scottalanmiller said in Configuration for EC2 instance autostartup:

                                @travisdh1 said in Configuration for EC2 instance autostartup:

                                @reid-cooper said in Configuration for EC2 instance autostartup:

                                @travisdh1 said in Configuration for EC2 instance autostartup:

                                @stacksofplates said in Configuration for EC2 instance autostartup:

                                @jaredbusch said in Configuration for EC2 instance autostartup:

                                @stacksofplates said in Configuration for EC2 instance autostartup:

                                @dashrender said in Configuration for EC2 instance autostartup:

                                The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

                                Which is weird. You pay even if it’s off. So just bring up instances when you need them.

                                Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

                                But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

                                I wonder what the use case is for that vs just bring them up when you need them?

                                Automatically creating/destroying cloud instances on an as-needed basis would be a great thing to automate, actually.

                                Creating and destroying is not turning on and off.

                                I know. Powering on should be a simple API call from another computer that's currently powered on. Might take some scripting , but shouldn't be super difficult.

                                Should be done via the Amazon API, how would another computer do it?

                                OP sounded like they don't want a human to have to push a button, requires a computer that's running to make the API call.

                                Yes, but an API call to Amazon. Not like WoL.

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  travisdh1 @scottalanmiller
                                  last edited by

                                  @scottalanmiller said in Configuration for EC2 instance autostartup:

                                  @travisdh1 said in Configuration for EC2 instance autostartup:

                                  @scottalanmiller said in Configuration for EC2 instance autostartup:

                                  @travisdh1 said in Configuration for EC2 instance autostartup:

                                  @reid-cooper said in Configuration for EC2 instance autostartup:

                                  @travisdh1 said in Configuration for EC2 instance autostartup:

                                  @stacksofplates said in Configuration for EC2 instance autostartup:

                                  @jaredbusch said in Configuration for EC2 instance autostartup:

                                  @stacksofplates said in Configuration for EC2 instance autostartup:

                                  @dashrender said in Configuration for EC2 instance autostartup:

                                  The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

                                  Which is weird. You pay even if it’s off. So just bring up instances when you need them.

                                  Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

                                  But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

                                  I wonder what the use case is for that vs just bring them up when you need them?

                                  Automatically creating/destroying cloud instances on an as-needed basis would be a great thing to automate, actually.

                                  Creating and destroying is not turning on and off.

                                  I know. Powering on should be a simple API call from another computer that's currently powered on. Might take some scripting , but shouldn't be super difficult.

                                  Should be done via the Amazon API, how would another computer do it?

                                  OP sounded like they don't want a human to have to push a button, requires a computer that's running to make the API call.

                                  Yes, but an API call to Amazon. Not like WoL.

                                  Sorry, another device. Would that be proper terminology?

                                  1 Reply Last reply Reply Quote 0
                                  • AmbarishrhA
                                    Ambarishrh
                                    last edited by

                                    May be he is looking for something like https://aws.amazon.com/answers/infrastructure-management/ec2-scheduler/

                                    S 1 Reply Last reply Reply Quote 1
                                    • S
                                      stacksofplates @travisdh1
                                      last edited by

                                      @travisdh1 said in Configuration for EC2 instance autostartup:

                                      @stacksofplates said in Configuration for EC2 instance autostartup:

                                      @jaredbusch said in Configuration for EC2 instance autostartup:

                                      @stacksofplates said in Configuration for EC2 instance autostartup:

                                      @dashrender said in Configuration for EC2 instance autostartup:

                                      The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

                                      Which is weird. You pay even if it’s off. So just bring up instances when you need them.

                                      Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

                                      But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

                                      I wonder what the use case is for that vs just bring them up when you need them?

                                      Automatically creating/destroying cloud instances on an as-needed basis would be a great thing to automate, actually.

                                      Ya here's a sample:

                                      ---
                                      - name: create aws instances
                                        hosts: localhost
                                      
                                        tasks:
                                          - name: create ec2 instance
                                            ec2:
                                              key_name: centos
                                              instance_type: t2.micro
                                              image: ami-ae7bfdb8
                                              wait: yes
                                              group: dns
                                              count: 1
                                              instance_tags:
                                                type: dns
                                              region: us-east-1
                                            register: ec2
                                      
                                          - name: wait for SSH
                                            wait_for:
                                              host: "{{ item.public_dns_name }}"
                                              port: 22
                                              delay: 30
                                              timeout: 320
                                              state: started
                                            with_items: "{{ ec2.instances }}"
                                      
                                      1 Reply Last reply Reply Quote 2
                                      • S
                                        stacksofplates @Reid Cooper
                                        last edited by

                                        @reid-cooper said in Configuration for EC2 instance autostartup:

                                        @travisdh1 said in Configuration for EC2 instance autostartup:

                                        @stacksofplates said in Configuration for EC2 instance autostartup:

                                        @jaredbusch said in Configuration for EC2 instance autostartup:

                                        @stacksofplates said in Configuration for EC2 instance autostartup:

                                        @dashrender said in Configuration for EC2 instance autostartup:

                                        The only thing I can figure is a) he wants to schedule a script or b) an instance will be powered off normally, but he wants it to come on at a specific time.

                                        Which is weird. You pay even if it’s off. So just bring up instances when you need them.

                                        Right I read a post the other day someplace where the OP was wanting to turn off Azure servers after hours. You still pay for those until they are destroyed.

                                        But the OP in that thread mentioned something about some agreement you can get that you pay less for powered off servers.

                                        I wonder what the use case is for that vs just bring them up when you need them?

                                        Automatically creating/destroying cloud instances on an as-needed basis would be a great thing to automate, actually.

                                        Creating and destroying is not turning on and off.

                                        Right, turning on and off doesn't make much sense. Just create destroy as needed.

                                        1 Reply Last reply Reply Quote 1
                                        • S
                                          stacksofplates @Ambarishrh
                                          last edited by

                                          @ambarishrh said in Configuration for EC2 instance autostartup:

                                          May be he is looking for something like https://aws.amazon.com/answers/infrastructure-management/ec2-scheduler/

                                          I don't get that. It seems less flexible than an ELB and you would have to continually calculate what you would need. Why not just pay for the ELB and have it automatically do this?

                                          If you really don't need this type of infrastructure, then just use something like Vultr or DO.

                                          T 1 Reply Last reply Reply Quote 1
                                          • T
                                            travisdh1 @stacksofplates
                                            last edited by

                                            @stacksofplates said in Configuration for EC2 instance autostartup:

                                            @ambarishrh said in Configuration for EC2 instance autostartup:

                                            May be he is looking for something like https://aws.amazon.com/answers/infrastructure-management/ec2-scheduler/

                                            I don't get that. It seems less flexible than an ELB and you would have to continually calculate what you would need. Why not just pay for the ELB and have it automatically do this?

                                            If you really don't need this type of infrastructure, then just use something like Vultr or DO.

                                            I'm gonna have to read up on the ELB. Looks like exactly the thing I've been wondering why nobody had.

                                            S 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post