aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.65k stars 3.91k forks source link

(cdk-Bootstrap): bootstrap an account with a custom qualifier #26939

Closed Lyndabenboudaoud closed 10 months ago

Lyndabenboudaoud commented 1 year ago

Describe the bug

We have bootstrapped our account with a custom qualifier, However, although setting the stack synthesizer to use the correct qualifier when deploying the stack, it is failing with the following error message:

"Error [ValidationError]: Unable to fetch parameters [/cdk-bootstrap/nnnnnnnnnn/version] from parameter store for this account."

We face this problem in eu-east-1 but it works fine in eu-west-1

here is the portion of the code in question:

unnamed

Expected Behavior

Have the same behaviour in us-east1 as in eu-west1

Current Behavior

We have bootstrapped our account with a custom qualifier, However, although setting the stack synthesizer to use the correct qualifier when deploying the stack, it is failing with the following error message:

"Error [ValidationError]: Unable to fetch parameters [/cdk-bootstrap/nnnnnnnnnn/version] from parameter store for this account."

error

Reproduction Steps

Deploying a CDK app and later changing the qualifier for the bootstrap

Possible Solution

No response

Additional Information/Context

We use this command to deploy: npx aws-cdk@2.67.0 deploy '*' --toolkit-stack-name stack-xxxx-cdk-v2-bootstrap --require-approval never --debug

CDK CLI Version

2.67

Framework Version

No response

Node.js Version

14.19.3

OS

Linux

Language

Typescript

Language Version

No response

Other information

No response

peterwoodworth commented 1 year ago

Try setting the qualifier prop? Also, make sure to check the console to ensure that it has actually been bootstrapped with the appropriate qualifier.

saharzitoun56 commented 1 year ago

Try setting the qualifier prop? Also, make sure to check the console to ensure that it has actually been bootstrapped with the appropriate qualifier.

The environment has been bootstrapped with the correct qualifier (the "nnnnnnnnn"). But when it comes to the creation of the lambda edge stack , he is unable to see the personalized bucket and ssm parameter. He took into account that qualifier because it was added to cdk.json file but not the personalized template of bootstrap. However this personalized template works for the other stacks in eu-west ( it dosen't work only with the stack of lambda edge in us-east)

pahud commented 11 months ago

Hi, I am looking into this issue. Is it still happening in CDK 2.111.0 or above? If yes, can you provide code snippet for me to reproduce this issue without using screenshot so I can easily copy/paste with minimal tweaks?

github-actions[bot] commented 11 months ago

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.