AWS Instance Scheduler is a resource optimization tool that enables automated start and stop scheduling for EC2 instances. It helps organizations save costs by allowing instances to run only when needed, ensuring that non-production instances are stopped during idle periods.
In this Cloud Lab, you’ll create an automated system that will start an EC2 Instance and use it to ping another target EC2 instance to check for its availability, and then, after completing the task, the system will shut down the EC2 instance again. To accomplish this, you’ll use AWS Instance Scheduler to turn on your EC2 instance at a designated time. Then you’ll use EventBridge to detect whenever your EC2 instance is switched on. You’ll use the EventBridge rule to trigger a lambda function that will ping your target instance and turn off the EC2 instance as well.
After completing this Cloud Lab, you’ll be able to effectively use the AWS Instance Scheduler to automatically control the state of your EC2 instances and save cost by running the EC2 instance for a designated amount of time
A high-level architecture diagram for this Cloud Lab is given below: