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

Not able to changes default account id (000000000000) of cdklocal. #93

Open
bc-venkata-edara opened this issue Sep 6, 2024 · 0 comments

Comments

@bc-venkata-edara
Copy link

I tried:

  1. I have tried adding export CDK_DEFAULT_ACCOUNT, but it did not picking up the account from the env, it still points to 000000000000.

  2. I was able to change the default region by doing aws configure, cdklocal synth --profile localstack, but aws configure doesn't accept account id.

Why I want to change default account id. we have account specific context in cdk.json, when we run cdklocal synth it's try to pickup account specifc context based on account id.

cdk.json:

{
"context": {
"account-id": {
"bucket-name": "test-dev"
},
"account-id2": {
"bucket-name": "test-dev"
}
}
}

app.py:

context = app.node.try_get_context(os.environ["CDK_DEFAULT_ACCOUNT"])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant