(aws_cdk.pipelines): ConfirmPermissionsBroadening only diffs on template differences #33061
Labels
@aws-cdk/pipelines
CDK Pipelines library
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
When using the ConfirmPermissionsBroadening check on a cross account stage, the CodeBuild project lacks permissions to assume neccesary roles in the target account, cannot create a cfn changeset and performs a diff only on template differences.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
A cloudformation changeset is being created in the target account and used as source to evaluate security related changes.
Current Behavior
Changeset cannot be created due to missing permissions on the Codebuild projects
The target account is properly bootstrapped, the trust policy of the file publishing role allows sts assume role from the source account.
The codebuild service role has a condition on the relevant policy that prevents assuming the file publishing role:
Reproduction Steps
Possible Solution
Fix the codebuild role
Additional Information/Context
No response
CDK CLI Version
2.176.0
Framework Version
No response
Node.js Version
v23.4.0
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: