taimos / cfn-tail

Tail for AWS CloudFormation stack events
MIT License
24 stars 6 forks source link

Tail for stack sets #7

Open atkinsonm opened 5 years ago

atkinsonm commented 5 years ago

I would like to be able to use this tool to tail CloudFormation stack sets. For basic implementation, I would like to just get the stack operation status and not the more detailed stack events from each underlying stack instance.

atkinsonm commented 5 years ago

Pseudo-code:

cfn-tail MyStackSet --stackset ## make sure we know we are dealing with a stack set and not a regular stack
operationId=$(list-stack-set-operations --query latest)
describe-stack-set-operation $operationId

## describe stack operations until we reach some end state
while ($status not in FAILED, STOPPED, SUCCEEDED)
print StackSetOperation[Status]
atkinsonm commented 5 years ago

(intending to submitting a PR for this feature)

atkinsonm commented 4 years ago

A rough implementation in Python is at https://gitlab.com/jhctech-oss/aws-tools/cfn-lab/-/blob/master/cfn-utils/deploy.py#L502