
Explanation:
CreationPolicy with ResourceSignal tells CloudFormation to wait for a specified number of cf-n-signal calls (3) within the timeout (PT15M = 15 minutes) before the resource is considered successfully created.
Ultimate access to all questions.
What does the WaitCondition and CreationPolicy configuration below enforce?
Resources:
WebASG:
Type: AWS::AutoScaling::AutoScalingGroup
CreationPolicy:
ResourceSignal:
Count: 3
Timeout: PT15M
Properties:
MinSize: '3'
MaxSize: '6'
LaunchTemplate:
LaunchTemplateId: !Ref MyLaunchTemplate
Version: !GetAtt MyLaunchTemplate.LatestVersionNumber
Resources:
WebASG:
Type: AWS::AutoScaling::AutoScalingGroup
CreationPolicy:
ResourceSignal:
Count: 3
Timeout: PT15M
Properties:
MinSize: '3'
MaxSize: '6'
LaunchTemplate:
LaunchTemplateId: !Ref MyLaunchTemplate
Version: !GetAtt MyLaunchTemplate.LatestVersionNumber
A
CloudFormation waits for 3 success signals from instances within 15 minutes before marking the ASG as CREATE_COMPLETE
B
The ASG will scale up to 6 instances after 15 minutes
C
It sets a 15-minute cooldown period for scaling activities
D
CloudFormation creates exactly 3 instances and then pauses
No comments yet.