AWS Fundamentals Logo
AWS Fundamentals
AWS::AutoScaling::ScalingPolicy

AutoScaling ScalingPolicy

The AWS::AutoScaling::ScalingPolicy resource specifies an Amazon EC2 Auto Scaling scaling policy so that the Auto Scaling group can scale the number of instances available for your application.

Properties

11 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
AutoScalingGroupName
string
RequiredCreate-only
AdjustmentType
string
Cooldown
string
EstimatedInstanceWarmup
integer
MetricAggregationType
string
MinAdjustmentMagnitude
integer
PolicyType
string
PredictiveScalingConfiguration
PredictiveScalingConfiguration
ScalingAdjustment
integer
StepAdjustments
Array<StepAdjustment>
TargetTrackingConfiguration
TargetTrackingConfiguration

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringThe ARN of the AutoScaling scaling policy
PolicyNamestring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::AutoScaling::ScalingPolicy

Resources:
  MyResource:
    Type: AWS::AutoScaling::ScalingPolicy
    Properties:
      AutoScalingGroupName: "my-autoscalinggroupname"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

autoscaling:DescribePoliciesautoscaling:PutScalingPolicycloudwatch:GetMetricData

read

autoscaling:DescribePolicies

update

autoscaling:DescribePoliciesautoscaling:PutScalingPolicycloudwatch:GetMetricData

delete

autoscaling:DeletePolicyautoscaling:DescribePolicies

list

autoscaling:DescribePolicies

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceAutoScaling
Properties13
Required1
TaggingNot supported
Primary IDArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

AutoScalingGroupName

External Links