Skip to content

Commit 7025ed3

Browse files
authored
fix(modules): volume access add KMS management permissions (#131)
1 parent 539f3ce commit 7025ed3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/volume_access.cft.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ Resources:
255255
Effect: "Allow"
256256
Principal:
257257
AWS:
258-
- !Sub "arn:aws:iam::${AWS::AccountId}:root"
258+
- !Sub arn:aws:iam::${AWS::AccountId}:root
259+
- !Sub arn:aws:iam::${AWS::AccountId}:role/sysdig-secure-scanning-stackset-execution-${NameSuffix}
259260
Action: "kms:*"
260261
Resource: "*"
261262
ScanningKmsAlias:
@@ -397,6 +398,8 @@ Resources:
397398
OrganizationKMSKeyStackSet:
398399
Type: AWS::CloudFormation::StackSet
399400
Condition: IsOrganizational
401+
DependsOn:
402+
- OrganizationRoleStackSet
400403
Properties:
401404
StackSetName: !Sub sysdig-secure-scanning-organization-kmskey-${NameSuffix}
402405
Description: IAM Role used to create KMS Keys to scan organization accounts/regions
@@ -464,7 +467,8 @@ Resources:
464467
Effect: "Allow"
465468
Principal:
466469
AWS:
467-
- !Sub "arn:aws:iam::${AWS::AccountId}:root"
470+
- !Sub arn:aws:iam::${AWS::AccountId}:root
471+
- !Sub arn:aws:iam::${AWS::AccountId}:role/aws-service-role/member.org.stacksets.cloudformation.amazonaws.com/AWSServiceRoleForCloudFormationStackSetsOrgMember
468472
Action: "kms:*"
469473
Resource: "*"
470474
ScanningKmsAlias:

0 commit comments

Comments
 (0)