(core): CliCredentialsStackSynthesizer does not work unless newStyleStackSynthesis is set false explicitly #30938
Labels
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
When using CliCredentialsStackSynthesizer, if unless the feature flag "@aws-cdk/core:newStyleStackSynthesis" is set false in cdk.json, bootstrapped deployment roles and cfn exec roles are being used when deploying the stack.
Expected Behavior
For a stack that has synthesizer as CliCredentialsStackSynthesizer(), the CLI creds must be used even if the feature flag is not set.
Current Behavior
The CliCredentialsStackSynthesizer does not have an effect to the stack.
Reproduction Steps
Create a sample stack with an s3 bucket
set the stack like below -
verbose logs -
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.150
Framework Version
No response
Node.js Version
v20.10.0
OS
macos
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: