May 2019
Intermediate to advanced
308 pages
8h 5m
English
When certain resources have dependent subjects in the resource, we can use CreationPolicy to prevent resource completion from being displayed until the dependent subjects have also been created. For example, we will wait for a certain number of instances in an Auto Scaling group to be created before we return the signal for the successful creation of the Auto Scaling group. To perform this, we can add WaitCondition to CreationPolicy.
Here is an example of WaitCondition within CreationPolicy:
{ "WaitCondition" : { "Type" : "AWS::CloudFormation::WaitCondition", "CreationPolicy" : { "ResourceSignal" : { "Timeout" : "PT30M", "Count" : "10" } } }
As you can see, WaitCondition can be used in any section of a CloudFormation template ...
Read now
Unlock full access