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
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.
Make sense. It is not a IFTTT.
Was tempted to select B with the `–notification-arns ` option for ‘create-stack’