-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add template wait object (#35)
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"AWSTemplateFormatVersion" : "2010-09-09", | ||
|
||
"Description" : "Example template showing how the WaitCondition and WaitConditionHandle are configured. With this template, the stack will not complete until either the WaitCondition timeout occurs, or you manually signal the WaitCondition object using the URL created by the WaitConditionHandle. You can use CURL or some other equivalent mechanism to signal the WaitCondition. To find the URL, use cfn-describe-stack-resources or the AWS Management Console to display the PhysicalResourceId of the WaitConditionHandle - this is the URL to use to signal. For details of the signal request see the AWS CloudFormation User Guide at http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/", | ||
|
||
"Resources" : { | ||
"myWaitHandle" : { | ||
"Type" : "AWS::CloudFormation::WaitConditionHandle", | ||
"Properties" : { | ||
} | ||
}, | ||
"myWaitCondition" : { | ||
"Type" : "AWS::CloudFormation::WaitCondition", | ||
"Properties" : { | ||
"Handle" : { "Ref" : "myWaitHandle" }, | ||
"Timeout" : "300" | ||
} | ||
} | ||
}, | ||
"Outputs" : { | ||
"ApplicationData" : { | ||
"Value" : { "Fn::GetAtt" : [ "myWaitCondition", "Data" ]}, | ||
"Description" : "The data passed back as part of signalling the WaitCondition" | ||
} | ||
} | ||
} |