Curbing Costs Using AWS Instance Scheduler

Curbing Costs Using AWS Instance Scheduler
Curbing Costs Using AWS Instance Scheduler

CLOUD LABS



Curbing Costs Using AWS Instance Scheduler

In this Cloud Lab, you’ll explore AWS Instance Scheduler and learn how it helps us save costs by only running EC2 instances when needed. This resource optimization tool automates start and stop schedules, ensuring efficient utilization and reducing expenses associated with idle instances.

8 Tasks

intermediate

1hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

A thorough understanding of the AWS Instance Scheduler
The ability to use Instance Scheduler to help us save cost
A deep understanding of how we can utilize AWS Instance Scheduler to automate tasks
Hands-on experience with Instance Scheduler to create a scheduled instance

Technologies
EventBridge logoEventBridge
Lambda logoLambda
EC2 logoEC2
CloudFormation logoCloudFormation
Skills Covered
Infrastructure as Code
Cloud Lab Overview

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:

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.Prerequisites
Create EC2 Instances
Create a Lambda Function
Create an EventBridge Rule
3.Setting Up Instance Scheduler
Create an Instance Scheduler
Create a Period and Schedule
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.
Hear what others have to say
Join 1.4 million developers working at companies like