kreuzwerker / kreuzlaker

11 stars 2 forks source link

Refactor infra deletions for storage to use aspects #13

Open fabdy opened 1 year ago

fabdy commented 1 year ago

See this blog post:

https://blog.jannikwempe.com/mastering-aws-cdk-aspects

Basically the application of "remove everything if on dev env" can be done by iterating over all constructs and set the right things outside of the construct, e.g. on stack level. Same for tags...

DoD:

The adhoc thingies in the stack class are gone and replaced by something outside of the stack class which just iterates over everything...