Pruner

While tc delete -s sandbox -e env command deletes the given topology, there are times where we need to just nuke all resources associated with the sandbox.

To delete all the resources, do:

tc prune -e qa -s john
Found functions:131, states:31, mutations:2, routes:5, events:10
Do you want to delete these resources in given sandbox ? (y/n) y

Deleting arn:aws:states:us-west-2:xxx:stateMachine:foo_john
Deleting arn:aws:states:us-west-2:xxx:stateMachine:bar_john
...

To do a dry-run of the delete or see the list of resources:

tc prune -e qa -s john --dry-run
arn:aws:states:us-west-2:xxx:stateMachine:foo_john
arn:aws:states:us-west-2:xxx:stateMachine:bar_john
...