Skip to content

Commit

Permalink
fix(modules): stackset exec role perms (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgeers committed Sep 10, 2024
1 parent 7bccfe6 commit f89a3bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/log_ingestion.events.cft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Resources:
- sts:AssumeRole
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AmazonEventBridgeFullAccess
- arn:aws:iam::aws:policy/AWSCloudFormationFullAccess
EventBridgeRole:
Type: AWS::IAM::Role
Properties:
Expand Down
8 changes: 8 additions & 0 deletions modules/volume_access.cft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ Resources:
- sts:AssumeRole
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AWSKeyManagementServicePowerUser
- arn:aws:iam::aws:policy/AWSCloudFormationFullAccess
ScanningKmsKeyStackSet:
Type: AWS::CloudFormation::StackSet
Properties:
Expand Down Expand Up @@ -255,6 +256,7 @@ Resources:
Principal:
AWS:
- !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 @@ -466,6 +468,12 @@ Resources:
- !Sub "arn:aws:iam::${AWS::AccountId}:root"
Action: "kms:*"
Resource: "*"
- Sid: "AllowDeploymentManagement"
Effect: "Allow"
Principal:
Service: "cloudformation.amazonaws.com"
Action: "kms:*"
Resource: "*"
ScanningKmsAlias:
Type: 'AWS::KMS::Alias'
Properties:
Expand Down

0 comments on commit f89a3bf

Please sign in to comment.