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.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image