localstack / localstack/aws-cdk-local

cdklocal bootstrap creates S3 bucket in wrong region

Open
#100 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
305
Forks
18
PR merge metrics
No merged PRs in 30d

Description

When I run `cdklocal bootstrap` I get the following output:

bootstrapped
⏳ Bootstrapping environment aws://000000000000/us-gov-west-1...
Trusted accounts for deployment: (none)
Trusted accounts for lookup: (none)
Using default execution policy of 'arn:aws:iam::aws:policy/AdministratorAccess'. Pass '--cloudformation-execution-policies' to customize.
CDKToolkit: creating CloudFormation changeset...
✅ Environment aws://000000000000/us-gov-west-1 bootstrapped.

`us-gov-west-1` is the correct region, but when I go to the localstack site and view s3 buckets:

cdk-hnb659fds-assets-000000000000-us-east-1

the bucket that gets created has the wrong suffix. It also shows up no matter which region I choose.

I haven't been able to figure out how to get it to create the s3 bucket in the correct region no matter what configuration or environment variables I setup.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing `cdklocal bootstrap` for `us-gov-west-1` and compare the reported environment with the S3 bucket suffix shown in LocalStack. Trace how the `cdklocal` entry point selects the region and how the bootstrap bucket is created. Done means the bucket region suffix matches the selected region and behavior is consistent across regions.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.