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.

latest cdklocal/localstack fails to bootstrap

See original GitHub issue

I upgraded cdklocal and localstack

I’m running localstack on Windows 10 . Below are the versions of the tools

$ cdklocal --version
1.77.0 (build a941c53)
$ docker images | grep localstack
localstack/localstack                  latest                  25b151909437        58 minutes ago      638MB
$ localstack --version
0.12.2

I have started localstack by running

$ localstack start

Then when I run

$ cdklocal bootstrap

I get the following errors

 ⏳  Bootstrapping environment aws://000000000000/eu-central-1...
CDKToolkit: creating CloudFormation changeset...
 0/3 | 14:00:48 | REVIEW_IN_PROGRESS   | AWS::CloudFormation::Stack | CDKToolkit User Initiated
 0/3 | 14:00:48 | CREATE_IN_PROGRESS   | AWS::CloudFormation::Stack | CDKToolkit 
 0/3 | 14:00:48 | UPDATE_IN_PROGRESS   | AWS::CloudFormation::Stack | CDKToolkit
 0/3 | 14:00:48 | UPDATE_COMPLETE      | AWS::CloudFormation::Stack | CDKToolkit
 0/3 | 14:00:48 | CREATE_COMPLETE      | AWS::CloudFormation::Stack | CDKToolkit 
 0/3 | 14:00:48 | CREATE_COMPLETE      | AWS::CloudFormation::Stack | CDKToolkit
 0/3 | 14:00:48 | CREATE_FAILED        | AWS::CloudFormation::Stack | CDKToolkit
 ❌  Environment aws://000000000000/eu-central-1 failed bootstrapping: Error: The stack named CDKToolkit failed to deploy: CREATE_FAILED
    at Object.waitForStackDeploy (C:\Users\lwong1\.npm-packages\node_modules\aws-cdk\lib\api\util\cloudformation.ts:307:11)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
    at Object.deployStack (C:\Users\lwong1\.npm-packages\node_modules\aws-cdk\lib\api\deploy-stack.ts:283:26)
    at C:\Users\lwong1\.npm-packages\node_modules\aws-cdk\lib\cdk-toolkit.ts:358:24
    at async Promise.all (index 0)
    at CdkToolkit.bootstrap (C:\Users\lwong1\.npm-packages\node_modules\aws-cdk\lib\cdk-toolkit.ts:355:5)
    at initCommandLine (C:\Users\lwong1\.npm-packages\node_modules\aws-cdk\bin\cdk.ts:201:9)
The stack named CDKToolkit failed to deploy: CREATE_FAILED

Prior to upgrading localstack it was still working. But perhaps this issue has the same cause as https://github.com/localstack/aws-cdk-local/issues/5 ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:27 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
whummercommented, Jan 2, 2021

Thanks for the update @Tehnix @denisdifazio @sbassin . We just did a quick test with the versions specified above (aws-cdk-local@1.65.2, aws-cdk@1.81.0), and it seems to be working with latest. Can you please do a docker pull localstack/localstack and give it another try with the latest Docker image?

What are the error logs you’re seeing - is it the same message as @denisdifazio posted above: Unable to determine the default AWS account: 404: …? Can you please share a minimal example (e.g., as a small project in a Github repo) to help reproduce this issue? Thanks for your help

4reactions
Tehnixcommented, Jan 2, 2021

@whummer awesome, I just tested and with latest and aws-cdk version 1.81.0 (build 6ef67c7) the whole flow worked 😃

Just wanted to also say thanks for all the effort y’all are doing! Especially responding on weekends like this 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running CDK bootstrap against LocalStack fails with ...
My stack is not using an environment. I want to keep it environment agnostic. const app = new cdk.App(); new InfrastructureStack(app, 'my-stack' ...
Read more >
AWS CDK Bootstrap Error and How To Fix It - Gerard Ketuma
The fix is to remove and delete the stack called CDKToolkit and then bootstrap again to get a new bucket created in S3....
Read more >
Using The AWS CDK With LocalStack And aws-cdk-local
The cdklocal command is a wrapper around aws-cdk that points the actions of the CDK to the local 4566 port used by LocalStack....
Read more >
Is it possible to do cloud development without the cloud?
That brings us to the last option – mimicking functionality of AWS cloud services ... cdklocal bootstrap aws: //000000000000/us-east-1 ...
Read more >
Develop and Test Real-time Data Pipelines with LocalStack
We can use the cdklocal tool to deploy the same CDK stacks on our ... start -d cdklocal bootstrap --app "python local_app.py" cdklocal...
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