In AWS CDK how can I tell, in app.py, if its a deploy or destroy?
I'm wanting to set a variable with the lifecycle action, whether its deploy, destroy, synth, etc, when a CDK stack is deployed.
Ex.
cdk deploy --all
And then use that variable in my code.
It does not appear app.py can get an argv variable, and this doesn't seem to be part of the environment variables.
Does anyone know how this might be accomplished?