
Explanation:
CreationPolicy with ResourceSignal tells CloudFormation to wait for a specified number of cfn-signal calls (3 in this case) within a specific timeout (PT15M = 15 minutes) before the resource is considered successfully created. If the signals are not received in time, the stack creation fails.
Ultimate access to all questions.
Question 14
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
E
None of the above
F
Not applicable
No comments yet.