From 78d6c7b3b4bae8d735abbdebbef1fa8e1757b0ed Mon Sep 17 00:00:00 2001 From: Chris Kalafarski Date: Tue, 23 Apr 2024 09:31:17 -0400 Subject: [PATCH] Add Auto Scaling org sink --- iam-roles/org-sink-bus-roles/template.yml | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/iam-roles/org-sink-bus-roles/template.yml b/iam-roles/org-sink-bus-roles/template.yml index 21983f15c..ac61e1144 100644 --- a/iam-roles/org-sink-bus-roles/template.yml +++ b/iam-roles/org-sink-bus-roles/template.yml @@ -108,3 +108,30 @@ Resources: - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId } - { Key: prx:ops:environment, Value: Production } - { Key: prx:dev:application, Value: DevOps } + + AutoScalingOrgSinkRole: + Type: AWS::IAM::Role + Properties: + AssumeRolePolicyDocument: + Statement: + - Action: sts:AssumeRole + Effect: Allow + Principal: + Service: events.amazonaws.com + Version: "2012-10-17" + Policies: + - PolicyDocument: + Statement: + - Action: events:PutEvents + Effect: Allow + Resource: arn:aws:events:us-east-2:578003269847:event-bus/AutoScaling-org-sink + Sid: AllowSendingEventsToSinkBus + Version: "2012-10-17" + PolicyName: AutoScalingBusPolicy + RoleName: PRX-AutoScalingOrgSinkRole + Tags: + - { Key: prx:meta:tagging-version, Value: "2021-04-07" } + - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName } + - { Key: prx:cloudformation:stack-id, Value: !Ref AWS::StackId } + - { Key: prx:ops:environment, Value: Production } + - { Key: prx:dev:application, Value: DevOps }