Skip to content

Commit

Permalink
Add Auto Scaling events rule
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Apr 23, 2024
1 parent 78d6c7b commit 8658625
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions event-rules/org-sink-rules/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,25 @@ Resources:
- Arn: arn:aws:events:us-east-2:578003269847:event-bus/Slack-org-sink
Id: org-sink-slack-message-payload
RoleArn: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/PRX-SlackOrgSinkRole

AutoScalingRule:
Type: AWS::Events::Rule
Properties:
EventPattern:
detail-type:
- EC2 Instance Launch Successful
- EC2 Instance Launch Unsuccessful
- EC2 Instance Terminate Successful
- EC2 Instance Terminate Unsuccessful
- EC2 Auto Scaling Instance Refresh Checkpoint Reached
- EC2 Auto Scaling Instance Refresh Started
- EC2 Auto Scaling Instance Refresh Succeeded
- EC2 Auto Scaling Instance Refresh Failed
- EC2 Auto Scaling Instance Refresh Cancelled
source:
- aws.autoscaling
State: ENABLED
Targets:
- Arn: arn:aws:events:us-east-2:578003269847:event-bus/AutoScaling-org-sink
Id: org-autoscaling-events
RoleArn: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/PRX-AutoScalingOrgSinkRole

0 comments on commit 8658625

Please sign in to comment.