Is there a way to stop deployment when context changes? #19905
-
Commit cdk.context.json to avoid nondeterministic network lookups is one of the best practices listed on the page Best practices for developing cloud applications with AWS CDK. After committing cdk.context.json, is there a way to ask cdk deploy to detect context changes and fail the deployment when diff is detected? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
cdk.context.json
won't update during synth/deploy if the context is already stored, so I'm not sure how exactly this feature would come into play. If you have a good use case, please open a feature request for this 🙂