cdklocal bootstrap fails complaining about StagingBucket
See original GitHub issueDescription
When trying to prepare the LocalStack service for CDK, the cdklocal bootstrap
seems to fail:
$ cdklocal bootstrap
⏳ Bootstrapping environment aws://000000000000/eu-central-1...
CDKToolkit: creating CloudFormation changeset...
[··························································] (0/3)
Environment aws://000000000000/eu-central-1 failed bootstrapping: Error [ValidationError]: Template error: resource StagingBucket does not support attribute type RegionalDomainName in Fn::GetAtt
at Request.extractError (/home/tehnix/GitHub/codetalkio/patterns-serverless-rust-minimal/node_modules/aws-cdk/node_modules/aws-sdk/lib/protocol/query.js:50:29)
at Request.callListeners (/home/tehnix/GitHub/codetalkio/patterns-serverless-rust-minimal/node_modules/aws-cdk/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at Request.emit (/home/tehnix/GitHub/codetalkio/patterns-serverless-rust-minimal/node_modules/aws-cdk/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
at Request.emit (/home/tehnix/GitHub/codetalkio/patterns-serverless-rust-minimal/node_modules/aws-cdk/node_modules/aws-sdk/lib/request.js:688:14)
at Request.transition (/home/tehnix/GitHub/codetalkio/patterns-serverless-rust-minimal/node_modules/aws-cdk/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/home/tehnix/GitHub/codetalkio/patterns-serverless-rust-minimal/node_modules/aws-cdk/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /home/tehnix/GitHub/codetalkio/patterns-serverless-rust-minimal/node_modules/aws-cdk/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/home/tehnix/GitHub/codetalkio/patterns-serverless-rust-minimal/node_modules/aws-cdk/node_modules/aws-sdk/lib/request.js:38:9)
at Request.<anonymous> (/home/tehnix/GitHub/codetalkio/patterns-serverless-rust-minimal/node_modules/aws-cdk/node_modules/aws-sdk/lib/request.js:690:12)
at Request.callListeners (/home/tehnix/GitHub/codetalkio/patterns-serverless-rust-minimal/node_modules/aws-cdk/node_modules/aws-sdk/lib/sequential_executor.js:116:18) {
code: 'ValidationError',
time: 2020-10-18T20:14:26.279Z,
requestId: undefined,
statusCode: 400,
retryable: false,
retryDelay: 953.511101390292
}
Template error: resource StagingBucket does not support attribute type RegionalDomainName in Fn::GetAtt
Not really sure where to dig for more information at the moment. For reference I’m running it against a a dockerized LocalStack ([using the standard docker-compose.yml setup).
- cdklocal version 1.65.0
- cdk version 1.65.0 (tested with 1.68.0 also)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
AWS CDK Bootstrap Error and How To Fix It - Gerard Ketuma
I got this error from the console after running the cdk deploy command: [100%] fail: No bucket named 'cdktoolkit-stagingbucket-fol1pifxqq1f'. Is ...
Read more >StagingBucket already exists error during cdk Bootstrap
During my practice of fllowing the AWS Cloud Development Kit (AWS CDK) script that automatically provisions container
Read more >Running CDK bootstrap against LocalStack fails with ...
I'm running LocalStack in docker and trying to deploy CDK resources into it. LocalStack seems to run OK: docker ps CONTAINER ID IMAGE...
Read more >Troubleshooting common AWS CDK issues
You are deploying a stack that requires bootstrap resources, but are using an IAM role or account that lacks permission to write to...
Read more >cdklocal deploy throws CREATE_FAILED with basic example
It was said in the cdklocal Github that the error seems to come from CloudFormation in localstack. ❯ cdklocal bootstrap ⏳ Bootstrapping environment ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@whummer This bug bothered me enough to dig into the
moto
source. I have a proposed fix for this here: https://github.com/spulec/moto/pull/3396.Should this be patched locally in
localstack
in the interim?@whummer awesome, that works 😃