Skip to content

Commit 5ef3be5

Browse files
authored
chore: add condition to bootstrap file publish role (#30823)
Adds a condition to restrict s3 permissions on the file publish role. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 8d55d86 commit 5ef3be5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ Resources:
377377
Resource:
378378
- Fn::Sub: "${StagingBucket.Arn}"
379379
- Fn::Sub: "${StagingBucket.Arn}/*"
380+
Condition:
381+
StringEquals:
382+
aws:ResourceAccount:
383+
- Fn::Sub: ${AWS::AccountId}
380384
Effect: Allow
381385
- Action:
382386
- kms:Decrypt
@@ -619,7 +623,7 @@ Resources:
619623
Type: String
620624
Name:
621625
Fn::Sub: '/cdk-bootstrap/${Qualifier}/version'
622-
Value: '20'
626+
Value: '21'
623627
Outputs:
624628
BucketName:
625629
Description: The name of the S3 bucket owned by the CDK toolkit stack

0 commit comments

Comments
 (0)