Complete the code to set a cooldown period of 300 seconds for an Auto Scaling group.
AutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
Cooldown: [1]The cooldown period is set in seconds. Setting it to 300 means the group waits 5 minutes before another scaling activity.
Complete the code to add a cooldown period to a scaling policy in AWS CloudFormation.
MyScalingPolicy:
Type: AWS::AutoScaling::ScalingPolicy
Properties:
Cooldown: [1]The Cooldown property defines the wait time after a scaling activity. 300 seconds is a typical cooldown period.
Fix the error in the cooldown period value to ensure it is valid for an Auto Scaling group.
AutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
Cooldown: [1]Cooldown must be a non-negative integer in seconds. '300' is valid, negative or string values are invalid.
Fill both blanks to correctly configure cooldown and min adjustment step in a scaling policy.
ScalingPolicy:
Type: AWS::AutoScaling::ScalingPolicy
Properties:
Cooldown: [1]
MinAdjustmentStep: [2]Cooldown is set to 300 seconds to allow stabilization. MinAdjustmentStep of 5 means scaling changes happen in steps of 5 units.
Fill all three blanks to configure a scaling policy with cooldown, adjustment type, and scaling adjustment.
ScalingPolicy:
Type: AWS::AutoScaling::ScalingPolicy
Properties:
Cooldown: [1]
AdjustmentType: [2]
ScalingAdjustment: [3]Cooldown is 200 seconds to wait between scaling actions. AdjustmentType 'ChangeInCapacity' means the scaling adjustment is an absolute number. ScalingAdjustment of 3 means add or remove 3 instances.