AWS::AutoScaling::ScalingPolicyThe 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.
11 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
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 |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | The ARN of the AutoScaling scaling policy |
PolicyName | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::AutoScaling::ScalingPolicy
Resources:
MyResource:
Type: AWS::AutoScaling::ScalingPolicy
Properties:
AutoScalingGroupName: "my-autoscalinggroupname"Permissions CloudFormation needs in your IAM role to manage this resource.
autoscaling:DescribePoliciesautoscaling:PutScalingPolicycloudwatch:GetMetricDataautoscaling:DescribePoliciesautoscaling:DescribePoliciesautoscaling:PutScalingPolicycloudwatch:GetMetricDataautoscaling:DeletePolicyautoscaling:DescribePoliciesautoscaling:DescribePoliciesOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
AutoScalingGroupName