(app-staging-synthesizer-alpha): Existing CDK diff IAM policies do not work with AppStagingSynthesizer #28816
Labels
@aws-cdk/app-staging-synthesizer-alpha
Related to the @aws-cdk/app-staging-synthesizer-alpha package
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
I deploy my AWS CDK applications via GitHub actions. When a pull request is opened, I assume an IAM role (via OIDC) to run the
cdk diff
and post it back to the PR for author review.The
diff
role that works with theDefaultStackSynthesizer
looks like this:With the
DefaultStackSynthesizer
, this works great.However, this role does not work with
AppStagingSynthesizer
. The failure I get is:Through trial and error, the final statement I needed to add looked like this:
Expected Behavior
From the documentation, it seems like the existing bootstrap roles should be used, just as with the default synthesizer.
I might be confused by this documentation but, the way I read it, makes me think my existing roles should still work.
Current Behavior
The
cdk diff
fails with an IAM error until I grant additional permissions to my OIDC role.Reproduction Steps
AppStagingSynthesizer
like this:cdk diff
. You'll receive the access denied error.Possible Solution
Ideally, the same bootstrap roles could be used whether you're using the default synthesizer or the
AppStagingSynthesizer
.Additional Information/Context
No response
CDK CLI Version
2.122.0 (build 7e77e02)
Framework Version
No response
Node.js Version
v20.11.0
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
Bootstrap version is v18
The text was updated successfully, but these errors were encountered: