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

fix(cli): cdk synth fails if AWS_ credentials have expired #10343

Merged
merged 2 commits into from
Sep 14, 2020

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Sep 14, 2020

If there are credentials but using them fails, the "default account
lookup" that's used to populate the environment variables fails
(should have returned undefined) and the CLI aborts before the CDK
app is synth'ed.

Fixes #7849.


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

If there are credentials but using them fails, the "default account
lookup" that's used to populate the environment variables fails
(should have returned `undefined`) and the CLI aborts before the CDK
app is synth'ed.

Fixes #7849.
@rix0rrr rix0rrr requested review from njlynch, iliapolo and a team September 14, 2020 13:10
@rix0rrr rix0rrr self-assigned this Sep 14, 2020
@rix0rrr rix0rrr changed the title fix(cli): cdk synth fails if AWS_ credentials are expired fix(cli): cdk synth fails if AWS_ credentials have expired Sep 14, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Sep 14, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 120c18f
  • 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 Sep 14, 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 406f665 into master Sep 14, 2020
@mergify mergify bot deleted the huijbers/expired-creds branch September 14, 2020 13:58
rix0rrr added a commit that referenced this pull request Sep 15, 2020
To prevent future errors like #10343, add a linting rule that would
have caught that bug.

The use of this linting rule requires normalizing code in multiple
places.
mergify bot pushed a commit that referenced this pull request Sep 15, 2020
To prevent future errors like #10343, add a linting rule that would
have caught that bug.

The use of this linting rule requires normalizing code in multiple
places, there's no wait to only positively check
for one case.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running "cdk synth" can fail due to expired security credentials
3 participants