Skip to content

Commit

Permalink
fix(modules): volume access add KMS management permissions (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgeers authored Sep 11, 2024
1 parent 539f3ce commit 7025ed3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 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 @@ -397,6 +398,8 @@ Resources:
OrganizationKMSKeyStackSet:
Type: AWS::CloudFormation::StackSet
Condition: IsOrganizational
DependsOn:
- OrganizationRoleStackSet
Properties:
StackSetName: !Sub sysdig-secure-scanning-organization-kmskey-${NameSuffix}
Description: IAM Role used to create KMS Keys to scan organization accounts/regions
Expand Down Expand Up @@ -464,7 +467,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/aws-service-role/member.org.stacksets.cloudformation.amazonaws.com/AWSServiceRoleForCloudFormationStackSetsOrgMember
Action: "kms:*"
Resource: "*"
ScanningKmsAlias:
Expand Down

0 comments on commit 7025ed3

Please sign in to comment.