Skip to content
This solution makes recommendations on how customers can “right-size” their services to match the current demand based on a detailed analysis of actual utilization of AWS resources over time.
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.DS_Store Version 2.4 Updates Apr 5, 2019 Adding standard files Mar 28, 2018
NOTICE.txt v2.3 Mar 1, 2018 Version 2.4 Updates Apr 5, 2019

AWS Cost Optimization: EC2 Right Sizing

Source code for the AWS solution "Cost Optimization: EC2 Right Sizing". Please see the main solution for the Cost Optimization: EC2 Right Sizing.

Cloudformation template


  • cost-optimization-ec2-right-sizing.template

You will need to replace %%BUCKET_NAME%% & %%VERSION%% in the template to point to the bucket where you put your own copies of the Python source code below.

Python source code




Log files are exported to the CloudWatch Logs log group cost-optimization-ec2-right-sizing, log streams: {instance_id}/cfn-init.log {instance_id}/run-rightsizing-redshift.log {instance_id}/deleteandterminate.log

Log files are also located locally on the solution created EC2 instance (if you chose to not terminate resources): /var/log/cfn-init.log /tmp/run-rightsizing-redshift.log /tmp/deleteandterminate.log

Copyright 2018, Inc. or its affiliates. All Rights Reserved.

Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.