Skip to content

Commit 7adb867

Browse files
feat: add stack refactoring permissions to the bootstrap stack (#471)
Closes #139. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license Co-authored-by: Eli Polonsky <Eli.polonsky@gmail.com>
1 parent 75b0781 commit 7adb867

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,17 @@ Resources:
575575
- ssm:GetParameters # CreateChangeSet uses this to evaluate any SSM parameters (like `CdkBootstrapVersion`)
576576
Resource:
577577
- Fn::Sub: "arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:parameter${CdkBootstrapVersion}"
578+
- Sid: Refactor
579+
Effect: Allow
580+
Action:
581+
# Permissions needed to use the CDK CLI with stack refactor
582+
- cloudformation:CreateStackRefactor
583+
- cloudformation:DescribeStackRefactor
584+
- cloudformation:ExecuteStackRefactor
585+
- cloudformation:ListStackRefactorActions
586+
- cloudformation:ListStackRefactors
587+
- cloudformation:ListStacks
588+
Resource: "*"
578589
Version: '2012-10-17'
579590
PolicyName: default
580591
RoleName:
@@ -672,7 +683,7 @@ Resources:
672683
Type: String
673684
Name:
674685
Fn::Sub: '/cdk-bootstrap/${Qualifier}/version'
675-
Value: '27'
686+
Value: '28'
676687
Outputs:
677688
BucketName:
678689
Description: The name of the S3 bucket owned by the CDK toolkit stack

0 commit comments

Comments
 (0)