Skip to content

Commit

Permalink
Give stackset exec role ability to subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Oct 27, 2024
1 parent 0d5f358 commit ccf654e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions stacksets/cfn-custom-resource-build/stackset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ Resources:
- Sid: AllowCloudFormation
Effect: Allow
Principal: "*"
Action:
- sns:Publish
- sns:Subscribe
Action: sns:Publish
Resource: !Ref CustomResourceTopic
Condition:
StringEquals:
Expand All @@ -36,6 +34,18 @@ Resources:
StringLike:
"aws:PrincipalArn":
- !Sub "arn:${AWS::Partition}:iam::*:role/CfnExecIamRole"
- Sid: AllowStackSetSubscribe
Effect: Allow
Principal: "*"
Action: sns:Subscribe
Resource: !Ref CustomResourceTopic
Condition:
StringEquals:
"aws:PrincipalOrgID":
- !Ref AwsOrganizationId
StringLike:
"aws:PrincipalArn":
- !Sub "arn:${AWS::Partition}:iam::*:role/stacksets-exec-*"
- Sid: AllowServiceCatalog
Effect: Allow
Principal: "*"
Expand Down

0 comments on commit ccf654e

Please sign in to comment.