What does this Amazon Web Services Solution do?

This solution offers infrastructure on demand so that customers can control their resource capacity and pay only for what they consume. One simple method to reduce costs is to stop resources that are not in use, and then start those resources again when their capacity is needed.

The Amazon Web Services Instance Scheduler is a simple solution that enables customers to easily configure custom start and stop schedules for their Amazon Elastic Compute Cloud (Amazon EC2) and Amazon Relational Database Service (Amazon RDS) instances. The solution is easy to deploy and can help reduce operational costs for both development and production environments. Customers who use this solution to run instances during regular business hours can save up to 70% compared to running those instances 24 hours a day.

This webpage provides an overview of the Instance Scheduler design and functionality.

Amazon Web Services Solution overview

This solution allows you to create automatic start and stop schedules for your Amazon EC2 and Amazon RDS instances. The diagram below presents the components and functionality you can build using the Instance Scheduler implementation guide and accompanying Amazon CloudFormation template.

Architecture of Serverless Image Handler

Amazon Web Services Instance Scheduler

An Amazon CloudWatch event triggers an Amazon Lambda function that checks the current state of each appropriately tagged instance against the targeted state defined in an associated schedule in Amazon DynamoDB. Then, the Lambda function applies the applicable start or stop action to the instance.

The Lambda function also records the name of the schedule, the number of instances associated with that schedule, and the number of running instances as an optional custom metric in Amazon CloudWatch.

Amazon Web Services Instance Scheduler

Version 1.3.0
Last updated: 05/2020
Author: Amazon Web Services 

Estimated deployment time: 10 min

Source code 


Reference implementation

This solution includes a template that creates the Amazon Identity and Access Management (IAM) roles necessary to start and stop instances in secondary accounts.

Scheduler command line interface

This solution includes a command line interface (CLI) that provides commands for configuring schedules and periods. The CLI allows customers to estimate cost savings for a given schedule.

Automated tagging

The Instance Scheduler can automatically add tags to all instances it starts or stops. The solution also includes macros that allow you to add variable information to the tags.

Partial automation

Users have the option to implement a partially automated solution by default.
Standard Product Icons (Features) Squid Ink
Explore all Amazon Web Services Solutions

Browse our portfolio of Amazon Web Services-built solutions to common architectural problems.

Learn more 
Find a Partner

Find Amazon Web Services certified consulting and technology partners to help you get started.

Learn more 
Standard Product Icons (Start Building) Squid Ink
Start building in the console

Sign-up and start exploring our services.

Get started