Cost - AWS Instance Scheduler

Cost

You are responsible for the cost of the AWS services used while running AWS Instance Scheduler. As of October 2021, the cost for running this solution with default settings in the US East (N. Virginia) Region is approximately $33.24 per month in AWS Lambda charges, or less if you have AWS Lambda free tier monthly usage credit. The solution also uses AWS Systems Manager (SSM) Automations, which charges $0.002 per step after the free tier period of 100,00 steps per account per month. This is independent of the number of Amazon EC2 instances you are running. By default, this solution uses on-demand scaling for its Amazon DynamoDB tables to provide sufficient read and write capacity.

AWS Instance Scheduler is designed to run AWS Lambda functions to evaluate the schedules, and invoke SSM Automations to start or stop instances based on the periods configured in the schedules. The cost of the solution after launch depends on the number of Lambda runs (default is 280 based on every five minute invocations per day). Each schedule will require an AWS Systems Manager Automation run for each account, Region, and service.

The costs in the following table are based on the following assumptions:

  1. The solution is deployed in US East (N. Virginia) Region.

  2. The solution manages EC2 instances, RDS instances, and Aurora clusters.

  3. The solution manages instances in an additional account.

  4. The total number of runs per day is 280 runs (Lambda is scheduled to run every five minutes).

  5. A total of two schedules, each schedule requiring at least one start and one stop action on the instances.

  6. The average runtime for the AWS Lambda is eight seconds.

  7. The memory selected for AWS Lambda is 128 MB.

AWS service Dimensions Cost (per month)
AWS Lambda

280 runs/24 hours

8 seconds per run

($0.0000021/second/run)

<$1.00
AWS Systems Manager Automations

5 accounts * 2 Regions * 3 services (Amazon EC2/Amazon RDS/Aurora clusters) * 2 number of schedules * 2 minimum number of actions per sheduler per day * 4 steps for each runbook

Total runs per day= 5*2*3*2*2*4 = 48

Total runs per month= 480 * 30 = 14400

Cost per month = 14400 * 0.002 = 28.80

For executeScript: 5 accounts, 2 Regions, 2 runbooks, 2 number of schedules, 2 number of actions per schedule per day

Total runs per day= 5*2*2*2*2= 160

Total runs per month= 160 * 30 = 4800

Duration of executeScript = 10 seconds

Total duration for month 48000 seconds

Cost per month 48000 * $0.00003 = 1.44

$30.24
AWS DynamoDB

8,640 (write/month)

($1.25 per million requests)

<$1.00
AWS DynamoDB

17,280 (read/month)

($0.5 per million requests)

<$1.00
AWS DynamoDB

<1 GB

(First 25 GB is free)

$0.0
Total: ~$33.24

The cost is independent of the number of Amazon EC2 and RDS instances you are running. By default, this solution uses on-demand scaling for its Amazon DynamoDB tables to provide sufficient read and write capacity. The AWS services for this solution are listed under Additional resources.

Prices are subject to change. For full details, refer to the pricing webpage for each AWS service you will be using in this solution.