Skip to content

Commit

Permalink
Add Auto Scaling org sink
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Apr 23, 2024
1 parent 51d6676 commit 78d6c7b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions iam-roles/org-sink-bus-roles/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

0 comments on commit 78d6c7b

Please sign in to comment.