How to determine when cdk deploy
is run?
#21486
-
Hi there, I have an interesting question, but I would like to know if there is any way within a CDK app to know which cdk subcommand was invoked. Specifically, I am just trying to distinguish between I think at a minimum, it would be good enough to know if we are only deploying a CDK app or not (i.e. if Use case/scenarioI can briefly go into the specifics of why this is an important question for me: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I think what you need is to extract the building logic and put it in the |
Beta Was this translation helpful? Give feedback.
-
I'd hoped that |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is new, but now you can use |
Beta Was this translation helpful? Give feedback.
I'm not sure if this is new, but now you can use
Stack.of(this).bundlingRequired
boolean property to determine if you should bundle.