amazon web services - EC2 Instance(Windows) recurring schedule by using Auto Scaling to Start/Stop the same instance -
i want start , stop ec2 instance daily @ given time. using auto scaling module doing same. terminating instance instead stopping (shutting down) instance , while starting instance each time launching new instance. auto scaling taking inputs image id of instance, aws access key id , aws secret key. want start , stop same instance everyday. how can accomplished?
there 2 ways in can accomplish this. yes auto scaling terminates instances , doesn't stops instances.
with auto-scaling :
you need modify code / app logic handle difference between stop & terminate instance. need create application deployed in ec2 instance stateless.without auto-scaling :
you can run separate process / scheduled script can run either on-premises or within ec2 fires script. script should have instance id , start , stop.ps : looking @ scenario, suggest pick "with-auto scaling" approach; not sure how differ or impact because of instance behavior or stop vs. terminate.
amazon-web-services amazon-ec2 autoscaling
No comments:
Post a Comment