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

Deploy error as SSM parameter not found #429

Closed
pchaganti opened this issue Mar 22, 2024 · 2 comments
Closed

Deploy error as SSM parameter not found #429

pchaganti opened this issue Mar 22, 2024 · 2 comments

Comments

@pchaganti
Copy link

Using the latest repo version. Doing a deploy results in this error.

 ❌ Deployment failed: Error: testGenAIChatBotStack: SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html)
    at Deployments.validateBootstrapStackVersion (/Users/pchaganti/Dev/test/node_modules/aws-cdk/lib/index.js:431:12220)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Deployments.buildSingleAsset (/Users/pchaganti/Dev/test/node_modules/aws-cdk/lib/index.js:431:10985)
    at async Object.buildAsset (/Users/pchaganti/Dev/test/node_modules/aws-cdk/lib/index.js:431:194378)
    at async /Users/pchaganti/Dev/test/node_modules/aws-cdk/lib/index.js:431:178767

testGenAIChatBotStack: SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html)

The environment is bootstrapped and the above mentioned "/cdk-bootstrap/hnb659fds/version" also exists. Screenshot from the console with the parameter below.

image

@pchaganti
Copy link
Author

Anyone have any info on how to resolve this error?

thanks

@ssliman
Copy link

ssliman commented Oct 16, 2024

Hi @pchaganti

You can fix it by adding the qualifier to your Pipeline stack under the folder /bin:

const stack = new Pipeline(app, 'some-stack', {
  synthesizer: new cdk.DefaultStackSynthesizer({
    qualifier: 'your-qualifier',
  }),
});

This what worked for me. Using the qualifier with AWS CDK CLI doesn't force it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants