Skip to content

Commit

Permalink
chore: add template wait object (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
saidsef authored Mar 11, 2024
1 parent fe4a5d7 commit 7cc9323
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions templates/WaitObject.template
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"
}
}
}

0 comments on commit 7cc9323

Please sign in to comment.