-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): add --no-lookups
flag to disable context lookups
#11489
Conversation
Context lookups are supposed to be performed on developer desktops, and committed to `cdk.context.json`. If you don't, your CI build might try to perform a lookup and fail with an unclear error message about permissions, or worse: appear to work properly but leave you with a nondeterministic build. Introduce a CLI flag called `--no-lookups` that throws an appropriately descriptive error message if you forgot to perform context lookups before committing. This now also makes it possible to write an integration test for PR #11461.
Can you add this to the default synth action for CDK pipelines too? I think that should be set. |
I know. Want to land the feature first. |
Co-authored-by: Romain Marcadier <rmuller@amazon.com>
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Context lookups are supposed to be performed on developer desktops, and
committed to
cdk.context.json
. If you don't, your CI build might tryto perform a lookup and fail with an unclear error message about
permissions, or worse: appear to work properly but leave you with a
nondeterministic build.
Introduce a CLI flag called
--no-lookups
that throws an appropriatelydescriptive error message if you forgot to perform context lookups
before committing.
This now also makes it possible to write an integration test for
PR #11461.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license