What method should I use to author automation if I want…

What method should I use to author automation if I want to wait for a CloudFormation stack to finish completing in a script?

What method should I use to author automation if I want to wait for a CloudFormation stack to finish completing in a script?

A.
Event subscription using SQS.

B.
Event subscription using SNS.

C.
Poll using ListStacks / list-stacks.

D.
Poll using GetStackStatus / get-stack-status.

Explanation:
Event driven systems are good for IFTTT logic, but only polling will make a script wait to complete. ListStacks / list-stacks
is a real method, GetStackStatus / get-stack-status is not.
http://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-stacks.html



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Sadeel Anjum

Sadeel Anjum

C
I think there is no such command GetStackStatus/get-stack-status.
We use ListStacks/list-stacks and give status (that we are searching for) as input parameter and regarding stacks are returned.

leonli

leonli

Make sense. It is not a IFTTT.
Was tempted to select B with the `–notification-arns ` option for ‘create-stack’