question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cdklocal bootstrap fails complaining about StagingBucket

See original GitHub issue

Description

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
10xjscommented, Oct 20, 2020

@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?

2reactions
Tehnixcommented, Oct 29, 2020

@whummer awesome, that works 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found