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

Cannot deploy stack after upgrade from 1.45.0 to 1.46.0 #8678

Closed
damonmcminn opened this issue Jun 22, 2020 · 5 comments
Closed

Cannot deploy stack after upgrade from 1.45.0 to 1.46.0 #8678

damonmcminn opened this issue Jun 22, 2020 · 5 comments
Assignees
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. package/tools Related to AWS CDK Tools or CLI response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@damonmcminn
Copy link

On upgrading to 1.46.0 from 1.45.0, I can no longer deploy due to some bootstrap failure.

Reproduction Steps

cdk deploy ProjectFoo

Environment

  • CLI Version : aws-cli/1.16.280 Python/3.8.0 Linux/4.15.0-106-generic botocore/1.13.16
  • Framework Version: 1.46.0 (build 63860b2)
  • Node.js Version: v12.14.0
  • OS : Ubuntu 18.04
  • Language (Version): TypeScript (3.9.3)

Other

Deploy fails with the following error:

ProjectFoo failed: Error: ProjectFoo: publishing assets requires bootstrap stack version '3', found '2'. Please run 'cdk bootstrap' with a newer CLI version.

I run cdk bootstrap per error message and get the error message:

Environment aws://123456789012/eu-west-1 failed bootstrapping: Error: Not downgrading existing bootstrap stack from version '2' to version '0'. Use --force to force.

I have been deploying successfully with 1.45.0 using the new style stack synthesis as documented here.


This is 🐛 Bug Report

@damonmcminn damonmcminn added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jun 22, 2020
@hoegertn
Copy link
Contributor

You need to run the whole command given in the linked comment not only cdk bootstrap

@SomayaB SomayaB added the package/tools Related to AWS CDK Tools or CLI label Jun 22, 2020
@SomayaB SomayaB added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jun 22, 2020
@SomayaB SomayaB self-assigned this Jun 22, 2020
@damonmcminn
Copy link
Author

You need to run the whole command given in the linked comment not only cdk bootstrap

Many thanks - I was unclear that was a need beyond the initial bootstrap - works perfectly now.

@shivlaks
Copy link
Contributor

seems like you're all set @damonmcminn - thanks for jumping in and providing guidance @hoegertn
I'm resolving this issue as I don't believe further action is required.

Feel free to reopen if I missed something.

@mariusingjer
Copy link

Am I completely blind? Where is the linked comment specifying the correct syntax?

@mirgj
Copy link
Contributor

mirgj commented Aug 27, 2020

@mariusingjer is referring at the linked comment in the OP message:

You can find it here: #3463 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. package/tools Related to AWS CDK Tools or CLI response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

6 participants