aws-cdk-rfcs icon indicating copy to clipboard operation
aws-cdk-rfcs copied to clipboard

One-off "job" Stacks ("auto destruct")

Open eladb opened this issue 6 years ago • 2 comments

We should consider some support for "one off" stacks. This can be used for various things like running integration tests or setting up infra for a big data analysis job that requires many resources and then should automatically tear down.

I would implement this is an construct that you can add to a stack and will automatically delete it when it receives an SNS notification. Then, when the job is over, it can publish the notification and the "auto destruct" logic will issue a DeleteStack.

eladb avatar Jul 11 '18 08:07 eladb

Still relevant

eladb avatar Oct 02 '19 08:10 eladb

https://github.com/jmb12686/cdk-time-bomb is this

pgollucci avatar Dec 27 '20 23:12 pgollucci

Solved by Ecosystem.

Marking this RFCs as stale since there has been little recent activity and it is not currently close to getting accepted as-is. We appreciate the effort that has gone into this proposal. Marking an RFCs as stale is not a one-way door. If you have made substantial changes to the proposal, please open a new issue/RFC. You might also consider raising a PR to aws/aws-cdk directly or self-publishing to Construct Hub.

mrgrain avatar Oct 27 '23 11:10 mrgrain