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...
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...