aws-samples / aws-genai-llm-chatbot

A modular and comprehensive solution to deploy a Multi-LLM and Multi-RAG powered chatbot (Amazon Bedrock, Anthropic, HuggingFace, OpenAI, Meta, AI21, Cohere, Mistral) using AWS CDK on AWS
https://aws-samples.github.io/aws-genai-llm-chatbot/
MIT No Attribution
1.08k stars 324 forks source link

Deploy error as SSM parameter not found #429

Closed pchaganti closed 7 months ago

pchaganti commented 7 months ago

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 commented 7 months ago

Anyone have any info on how to resolve this error?

thanks

ssliman commented 2 weeks ago

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.