Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.9k points)
edited by

I've got my head around creating cloud instances in AWS. However, I need to turn my instances off at the end of the day and on in the morning as this will half my hosting cost (they are for development).

I've looked at a few management services but they blew my brains out. Is there a simple way to do this?

closed

1 Answer

+1 vote
by (18.2k points)
selected by
 
Best answer

For Amazon EC2 instances, you can script a python program using boto3 to do this for you. You can use any of the following methods in your Python script, depending on what you want your script to do:

  • StartInstances()
  • StopInstances()
  • RebootInstances()

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...