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.

[cdk deploy] cdk deploy does not take into account the specific bootstrap qualifier

See original GitHub issue

What is the problem?

I had bootstraped my account with the following qualifier : devops The synth command synthesizes the stack with the correct values of bootstrap : BootstrapVersion: Type: AWS::SSM::Parameter::Value<String> Default: /cdk-bootstrap/devops/version Description: Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]

Reproduction Steps

cdk bootstrap --qualifier devops aws://xxxx/eu-west-1

My stack is:

InfraBackbonePipelineStack(app, stackName, { synthesizer: new DefaultStackSynthesizer({ qualifier: "devops"})

Then I execute : cdk deploy

What did you expect to happen?

Deployment of the stack using the correct bootstrap qualifier ‘devops’

What actually happened?

But the cdk deploy commands is always in error: Error [ValidationError]: Unable to fetch parameters [/cdk-bootstrap/hnb659fds/version] from parameter store for this account.

CDK CLI Version

2.8

Framework Version

No response

Node.js Version

14.17.3

OS

Ubuntu 20.04

Language

Typescript

Language Version

Typescript 4.5.4

Other information

No response

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
abhisjoshicommented, Feb 2, 2022

By default, the AWS CDK retains values of parameters from previous deployments and uses them in subsequent deployments if they are not specified explicitly.

To resolve the issue, I use the command listed below.

cdk deploy --no-previous-parameters

0reactions
github-actions[bot]commented, Feb 4, 2022

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrapping - AWS Cloud Development Kit (AWS CDK) v2
--qualifier is a string that is added to the names of all resources in the bootstrap stack. A qualifier lets you avoid resource...
Read more >
AWS CDK Bootstrapping and deployment with Qualifiers and ...
Your browser can 't play this video. Learn more. Switch camera ... AWS CDK Bootstrapping and deployment with Qualifiers and Custom Parameters.
Read more >
awslabs/aws-cdk - Gitter
Hi, I'm using the CDK to deploy an EventBridge rule that runs an ECSTask. It's binding a particular version (that's being deployed in...
Read more >
How to use CDK without using CDKToolkit - AWS re:Post
It's possible to use CDK, run cdk synth to generate the Cloudformation, and to use that to deploy without the bootstrap stack. This...
Read more >
@aws-cdk/pipelines - npm
--trust : indicates which other account(s) should have permissions to deploy CDK applications into this account. In this case we indicate the Pipeline's...
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