pause the template execution for a few minutes

Viewed 384

I have a cloudformation template that works correctly. It initiates an elastic server along with cloud-trail.

datameetgeobk.s3.amazonaws.com/cftemplates/audit_trail.yaml

I have to wait for 10 minute to get the endpoint. The endpoint is used in Lambda function that is part of another template.

stream logs to elastic using cloudformation template

Is there WaitCondition in cloudformaton that I can use before joining these 2 templates?

1 Answers

Yes, there is a WaitCondition that uses properties like Count, Handle, Timeout.

More info about the same is Here

Example Code

Declare an `AWS::CloudFormation::WaitConditionHandle resource in the stack's template

"myWaitHandle" : {
     "Type" : "AWS::CloudFormation::WaitConditionHandle",
     "Properties" : {
     }
}
Related