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.

(cli): bootstrapping for CDK v2

See original GitHub issue

General Issue

SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped?

The Question

I’m starting to plan upgrading to cdk v2. I noticed this error when I upgraded one of our sample apps to cdk v2:

SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped?

We have multiple cdk apps running in the same aws account and are unable to upgrade these to cdk v2 simultaneously. I checked the https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-v2.html guide, and while it mentions that re-bootstrapping is a required prerequisite for cdk v2, it says nothing about interop between v1 and v2 stacks. This guide: https://aws.amazon.com/about-aws/whats-new/2021/04/aws-cloud-development-kit-aws-cdk--v2-and-go-cdk-is-now-available-for-developer-preview/ mentions “…for most projects, can be accomplished with a one-time, safe re-bootstrapping of your AWS accounts” but it doesn’t specify what it’s safe from. Like, why wouldn’t it be safe?

So my question: Will cdk v2 support a mix of v1 and v2-based stacks in the same aws account? Some more documentation around this topic would be very helpful

CDK CLI Version

2.0.0-rc.30 (build 6051e07)

Framework Version

No response

Node.js Version

No response

OS

No response

Language

Python

Language Version

No response

Other information

No response

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
peterwoodworthcommented, Nov 30, 2021

No problem, I’ve made the note that this should be more clear in our docs. Thank you for the feedback!

2reactions
peterwoodworthcommented, Nov 30, 2021

Yes - V1 based stacks support using the modern bootstrapping template, so you will still be able to deploy v1 based stacks in an account bootstrapped for v2.

To put it another way - if you cdk bootstrap with the modern template on the latest version of v1, and then bootstrap on v2, the second bootstrap will say that no changes have been made to the bootstrap stack

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS CDK Toolkit (cdk command) - AWS Documentation
Deploying stacks with the CDK requires special dedicated AWS CDK resources to be provisioned. The cdk bootstrap command creates the necessary resources for...
Read more >
Bootstrapping AWS CDK in a Secure Environment - Medium
You have your AWS CLI credentials set appropriately. You have CDK installed. (These steps have been tested with CDK v2.6.0); You know the...
Read more >
Bootstrapping with AWS CDK - YouTube
Bootstrapping with AWS CDK. Watch later. Share. Copy link. Info. Shopping. Tap to unmute. If playback doesn't begin shortly, try restarting ...
Read more >
How to use CDK without using CDKToolkit - AWS re:Post
The following command will generate a CDK bootstrap template (note: it's a ... FYI in CDK V2 cli you can use the --trust...
Read more >
cdk deploy - AWS CDK Workshop
Okay, we've got a CloudFormation template. What's next? Let's deploy it into our account! Bootstrapping an environment # The first time you deploy...
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