From b191ebb569ad6e3834a77217de3e6d3df8a9517d Mon Sep 17 00:00:00 2001 From: Chris Kalafarski Date: Sun, 21 Apr 2024 23:02:04 -0400 Subject: [PATCH] Add stack set status change rule --- event-rules/org-sink-rules/template.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/event-rules/org-sink-rules/template.yml b/event-rules/org-sink-rules/template.yml index 3a4160e39..4143564b5 100644 --- a/event-rules/org-sink-rules/template.yml +++ b/event-rules/org-sink-rules/template.yml @@ -29,6 +29,20 @@ Resources: - Arn: arn:aws:events:us-east-2:578003269847:event-bus/CloudFormation-org-sink Id: org-sink-cfn-state-change RoleArn: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/PRX-CloudFormationOrgSinkRole + CloudFormationStackSetStateChangeRule: + Type: AWS::Events::Rule + Properties: + EventPattern: + detail-type: + - CloudFormation StackSet Status Change + - CloudFormation StackSet Operation Status Change + source: + - aws.cloudformation + State: ENABLED + Targets: + - Arn: arn:aws:events:us-east-2:578003269847:event-bus/CloudFormation-org-sink + Id: org-sink-cfn-stackset-change + RoleArn: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/PRX-CloudFormationOrgSinkRole CloudTrailRootActivityRule: Type: AWS::Events::Rule