Skip to content

Commit

Permalink
Prevent cross-account confused deputies
Browse files Browse the repository at this point in the history
  • Loading branch information
scarytom authored Dec 12, 2023
1 parent f128851 commit 66d02be
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 @@ -537,6 +537,10 @@ Resources:
Effect: Allow
Principal:
Service: cloudformation.amazonaws.com
Condition:
StringEquals:
aws:SourceAccount:
Ref: AWS::AccountId
Version: '2012-10-17'
ManagedPolicyArns:
Fn::If:
Expand Down

0 comments on commit 66d02be

Please sign in to comment.