Skip to content
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

Merged
merged 6 commits into from
Nov 24, 2020

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Nov 16, 2020

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.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

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.
@rix0rrr rix0rrr requested review from NetaNir and a team November 16, 2020 11:14
@rix0rrr rix0rrr self-assigned this Nov 16, 2020
@gitpod-io
Copy link

gitpod-io bot commented Nov 16, 2020

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 16, 2020
@rix0rrr rix0rrr added the pr-linter/exempt-readme The PR linter will not require README changes label Nov 16, 2020
@hoegertn
Copy link
Contributor

Can you add this to the default synth action for CDK pipelines too? I think that should be set.

@rix0rrr
Copy link
Contributor Author

rix0rrr commented Nov 16, 2020

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>
@rix0rrr rix0rrr requested review from RomainMuller and a team November 23, 2020 14:05
@mergify
Copy link
Contributor

mergify bot commented Nov 24, 2020

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-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: f6f5ecf
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Nov 24, 2020

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

@mergify mergify bot merged commit 0445a6e into master Nov 24, 2020
@mergify mergify bot deleted the huijbers/disable-lookups branch November 24, 2020 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. pr-linter/exempt-readme The PR linter will not require README changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants