Is it possible to stop your EC2 Instances at regular schedules, for example, at 6PM everyday?

IaaS Academy QuestionsCategory: AWS How-To-GuideIs it possible to stop your EC2 Instances at regular schedules, for example, at 6PM everyday?
Raj asked 2 months ago

Hi,
We want to automatically shutdown our EC2 Instances at 6 PM every evening and then start them up again at 8 AM every morning?  Is there a way to automate this?

1 Answers
admin Staff answered 4 weeks ago

You can use a Lambda Function which gets triggered by Amazon Cloud Events or EventBridge at the scheduled times required to start and stop your EC2 Instances. The Lambda Function will need to be provided which the Instance-IDs of the EC2 Instances you want to start and stop. You can also use tags to identify which EC2 Instances to start and stop. Furthermore, Lambda will need an IAM role to grant it permissions to stop and start the EC2 Instances. Here is a link to a quick guide – https://aws.amazon.com/premiumsupport/knowledge-center/start-stop-lambda-cloudwatch/

We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.

Privacy Settings saved!
Privacy Settings

When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. Control your personal Cookie Services here.

These cookies are necessary for the website to function and cannot be switched off in our systems.

In order to use this website we use the following technically required cookies
  • wordpress_test_cookie
  • wordpress_logged_in_
  • wordpress_sec

We use WooCommerce as a shopping system. For cart and order processing 2 cookies will be stored. This cookies are strictly necessary and can not be turned off.
  • woocommerce_cart_hash
  • woocommerce_items_in_cart

Decline all Services
Accept all Services