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

    Configuration for EC2 instance autostartup

    Scheduled Pinned Locked Moved IT Discussion
    31 Posts 11 Posters 3.4k Views
    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.
    • stacksofplatesS
      stacksofplates
      last edited by

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

      S 1 Reply Last reply Reply Quote 1
      • DashrenderD
        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.

        stacksofplatesS 1 Reply Last reply Reply Quote 0
        • jmooreJ
          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
          • stacksofplatesS
            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.

            JaredBuschJ 1 Reply Last reply Reply Quote 1
            • JaredBuschJ
              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.

              stacksofplatesS 1 Reply Last reply Reply Quote 0
              • stacksofplatesS
                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?

                travisdh1T 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  I think we need more info as to the goals.

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

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

                    1 Reply Last reply Reply Quote 0
                    • travisdh1T
                      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.

                      Reid CooperR stacksofplatesS 2 Replies Last reply Reply Quote 0
                      • Reid CooperR
                        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.

                        travisdh1T stacksofplatesS 2 Replies Last reply Reply Quote 0
                        • travisdh1T
                          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.

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            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?

                            travisdh1T 1 Reply Last reply Reply Quote 1
                            • travisdh1T
                              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.

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                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.

                                travisdh1T 1 Reply Last reply Reply Quote 0
                                • travisdh1T
                                  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/

                                    stacksofplatesS 1 Reply Last reply Reply Quote 1
                                    • stacksofplatesS
                                      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
                                      • stacksofplatesS
                                        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
                                        • stacksofplatesS
                                          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.

                                          travisdh1T 1 Reply Last reply Reply Quote 1
                                          • travisdh1T
                                            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.

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