A collection of configuration templates for Application Auto Scaling as well as security controls for monitoring and protecting Application Auto Scaling configuration such as Config Rules, CloudWatch Alarms, EventBridge Rules, IAM policies, and more.

Application Auto Scaling
Application Auto Scaling Step Scaling Policy

This template creates a scaling policy using the `StepScaling` policy type and the `ChangeInCapacity` adjustment type. When an associated alarm is triggered, the policy increases the capacity of the scalable target based on step adjustments. The step adjustments are as follows: increase capacity by 1 when the value of the metric is greater than or equal to 70 percent but less than 85 percent, increase capacity by 2 when the value of the metric is greater than or equal to 85 percent but less than 95 percent, and increase capacity by 3 when the value of the metric is greater than or equal to 95 percent. The scaling policy has a 600 second cooldown period after every scaling activity.

CloudFormationTerraform
Application Auto Scaling Policy Example

This template creates a scaling policy using the `TargetTrackingScaling` policy type. The policy uses the `CassandraWriteCapacityUtilization` predefined metric. When the metric is at or exceeds 75 percent, the scaling policy increases the capacity of the scalable target, and when it falls below 75 percent, the scaling policy decreases the capacity of the scalable target. The scaling policy has a 60 second cooldown period after every scaling activity.

CloudFormationTerraform
Example Scalable Target Configuration for Cassandra

This template creates a scalable target for an AWS::Cassandra::Table resource. Application Auto Scaling can scale the write capacity throughput at a minimum of 1 capacity unit and a maximum of 20. The template specifies the service namespace, scalable dimension, resource ID, and values for minimum and maximum capacity.

CloudFormationTerraform
ECS Service Step Scaling

Configures step scaling for an ECS service to adjust capacity based on defined metrics.

Terraform
Aurora Read Replica Autoscaling

Configures autoscaling for Aurora read replicas based on CPU utilization.

Terraform
ECS Service Target Tracking Scaling Using Metric Math

Creates a target tracking scaling policy for an ECS service using custom metric math expressions.

Terraform
ECS Service Autoscaling

Sets up autoscaling for an ECS service to modify the desired count of instances according to a schedule.

Terraform
ECS Service Desired Count Autoscaling

Configures autoscaling for the desired count of an ECS service.

Terraform
Suppressing `tags_all` Differences for ECS Service Autoscaling

Configures ECS service autoscaling and suppresses differences in `tags_all` for older resources.

Terraform