Skip to content

Commit

Permalink
fix(modules): volume access add KMS management permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
cgeers committed Sep 10, 2024
1 parent 2edb270 commit 6b35bb1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/volume_access.cft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ Resources:
Effect: "Allow"
Principal:
AWS:
- !Sub "arn:aws:iam::${AWS::AccountId}:root"
- !Sub arn:aws:iam::${AWS::AccountId}:root
- !Sub arn:aws:iam::${AWS::AccountId}:role/sysdig-secure-scanning-stackset-execution-${NameSuffix}
Action: "kms:*"
Resource: "*"
ScanningKmsAlias:
Expand Down Expand Up @@ -449,8 +450,8 @@ Resources:
Effect: "Allow"
Principal:
AWS:
- !Sub arn:aws:iam::${ScanningAccountID}:root
- !Sub arn:aws:iam::${AWS::AccountId}:role/sysdig-secure-scanning-${NameSuffix}
- !Sub "arn:aws:iam::${ScanningAccountID}:root"
- !Sub "arn:aws:iam::${AWS::AccountId}:role/sysdig-secure-scanning-${NameSuffix}"
Action:
- "kms:Encrypt"
- "kms:Decrypt"
Expand All @@ -465,6 +466,7 @@ Resources:
Principal:
AWS:
- !Sub "arn:aws:iam::${AWS::AccountId}:root"
- !Sub "arn:aws:iam::${AWS::AccountId}:role/aws-service-role/member.org.stacksets.cloudformation.amazonaws.com/AWSServiceRoleForCloudFormationStackSetsOrgMember"
Action: "kms:*"
Resource: "*"
ScanningKmsAlias:
Expand Down

0 comments on commit 6b35bb1

Please sign in to comment.