Skip to content

Commit

Permalink
add condition to file publish role
Browse files Browse the repository at this point in the history
  • Loading branch information
scanlonp committed Jul 10, 2024
1 parent 0875ef9 commit 79ef87e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ Resources:
Resource:
- Fn::Sub: "${StagingBucket.Arn}"
- Fn::Sub: "${StagingBucket.Arn}/*"
Condition:
StringEquals:
aws:ResourceAccount:
- Fn::Sub: ${AWS::AccountId}
Effect: Allow
- Action:
- kms:Decrypt
Expand Down

0 comments on commit 79ef87e

Please sign in to comment.