File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments