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?
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/