CloudFormation Features: Part II
Build on your understanding of CloudFormation by understanding more of its core features.
CreatePolicy
The CreatePolicy
attribute can be used with a resource to prevent its status from reaching the create complete state until AWS CloudFormation receives a certain number of signals from the resource. The CreatePolicy
attribute is only supported by the following resource types:
AWS::AppStream::Fleet
AWS::AutoScaling::AutoScalingGroup
AWS::EC2::Instance
AWS::CloudFormation::WaitCondition
In the following code, we have a resource, EducativeASG
, with desired capacity 3
. We’ve associated a creation policy with this ASG to ensure that CloudFormation receives three SUCCESS signals, one from each of the ASG instances.
Get hands-on with 1400+ tech skills courses.