(module name): (short issue description) #26985
Labels
@aws-cdk/assets
Related to the @aws-cdk/assets package
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
CDK does not take into account the synthesizer name.
Previously, I was able to use a synthesizer name in all my deployments.
Even the bootstrapping of the accounts are using synthesizer names.
Now, when I try to deploy, I have the following error:
cdk deploy -c envName=test
current credentials could not be used to assume 'arn:aws:iam::xxxxxxx:role/cdk-hnb659fds-deploy-role-xxxxxxx-eu-west-1', but are for the right account. Proceeding anyway.
It means that the qualifier is not taken into account when the stack is synthesized.
It is visible in the STACK-NAME.assets.json file
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", ... "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
All the previous stacks, already installed are working fine.
But it is impossible to deploy new ones.
Expected Behavior
Stack must be synthesized with the correct qualifier.
I am using qualifier since 2 years. All the stacks and environments are already configured.
I have the SSM correctly configured.
I have the roles configured with qualifier's name instead of hnb659fds name.
Current Behavior
No deployment is possible as it shows the error:
current credentials could not be used to assume 'arn:aws:iam::xxxxxx:role/cdk-hnb659fds-deploy-role-xxxxxx-eu-west-1', but are for the right account. Proceeding anyway.
Reproduction Steps
cdk deploy -c envName=test
I use envName to specify the qualifier in the stack creation.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.94
Framework Version
No response
Node.js Version
18.16.0
OS
windows 11
Language
Typescript
Language Version
5.2.2
Other information
No response
The text was updated successfully, but these errors were encountered: