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

codebuild: CDK_DEFAULT_ACCOUNT is not set #15122

Closed
erudisch opened this issue Jun 14, 2021 · 4 comments
Closed

codebuild: CDK_DEFAULT_ACCOUNT is not set #15122

erudisch opened this issue Jun 14, 2021 · 4 comments
Labels
@aws-cdk/aws-codebuild Related to AWS CodeBuild bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while.

Comments

@erudisch
Copy link

erudisch commented Jun 14, 2021

Somehow the env var CDK_DEFAULT_ACCOUNT is not set. We are using a https proxy and prefix the install command of our synth action with HTTPS_PROXY=<proxy_url>.

We also didn't find a solution here

The .aws folder is missing as well.

image

Sadly there is nothing more to say...

Reproduction Steps

Maybe setting up a proxy like we did leads to the same problem.

What did you expect to happen?

That the env var CDK_DEFAULT_ACCOUNT is set.

What actually happened?

CDK_DEFAULT_ACCOUNT is not set.

Environment

  • **CDK CLI Version :1.108.1 (build ae24d8a)
  • **Framework Version:1.108
  • **Node.js Version:v14.16.1
  • **OS :macos 11.4
  • **Language (Version):Typescript 4.3.2

Other


This is 🐛 Bug Report

@erudisch erudisch added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jun 14, 2021
@github-actions github-actions bot added the @aws-cdk/aws-codebuild Related to AWS CodeBuild label Jun 14, 2021
@skinny85
Copy link
Contributor

Hi @erudisch,

can you specify what command are you running on the CodeBuild job?

Thanks,
Adam

@skinny85 skinny85 added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jun 17, 2021
@peterwoodworth peterwoodworth removed the needs-triage This issue or PR still needs to be triaged. label Jun 25, 2021
@skinny85 skinny85 removed their assignment Jul 1, 2021
@peterwoodworth
Copy link
Contributor

Hey @erudisch, can you please specify which command you're running on your CodeBuild job? Thanks.

@peterwoodworth peterwoodworth added closing-soon This issue will automatically close in 4 days unless further comments are made. and removed response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Jul 8, 2021
@github-actions github-actions bot added closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Sep 21, 2021
@flashflexpro
Copy link

Please reopen, I see the same problem: running cdk ls or cdk synth ..., it has CDK_DEFAULT_REGION set in logging:

Toolkit stack: CDKToolkit
Setting "CDK_DEFAULT_REGION" environment variable to us-east-1
Resolving default credentials

but no CDK_DEFAULT_ACCOUNT.

I'm using CDK/CLI 2.31.1

@flashflexpro
Copy link

can use CODEBUILD_BUILD_ARN=arn:aws:codebuild:us-east-1::build/....... as workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-codebuild Related to AWS CodeBuild bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while.
Projects
None yet
Development

No branches or pull requests

4 participants