From the course: AWS: Automation and Optimization
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Instance Scheduler tags - Amazon Web Services (AWS) Tutorial
From the course: AWS: Automation and Optimization
Instance Scheduler tags
- [Narrator] The AWS Instant Scheduler uses a Lambda function to start and stop EC2 and RDS instances. And the Lambda function references a Dynamo DB table to check when the instance should run or stop. The CloudFormation template we launched earlier created a Dynamo DB table. They Dynamo DB table has a schedule called "Seattle Office Hours." This schedule is associated with a period called "Office Hours." Scrolling up, we can see the period called "Office Hours," which runs from Monday to Friday, with a start time of 9:00 a.m., and end time of 5:00 p.m. It is also possible to create a new schedule and a new period, or modify the existing ones. For now, we'll leave it at the default. If a tagged EC2 instance has a state of running outside of these hours, the Lambda function will stop the instance. Let's tag the required EC2 or RDS instances. Remember, the tag key must match what you specify while creating the tag formation template. And the tag value must match the name of the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.