diff --git a/templates/WaitObject.template b/templates/WaitObject.template new file mode 100644 index 0000000..f77933f --- /dev/null +++ b/templates/WaitObject.template @@ -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" + } + } +}