Skip to content

Commit

Permalink
[Improvement] state/elasticsearch - Subscribe to ES Software Update N…
Browse files Browse the repository at this point in the history
…otifications (widdix#575)
  • Loading branch information
michaelwittig authored Aug 20, 2021
1 parent 90985f5 commit a25f027
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions state/elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,28 @@ Resources:
Period: 60
Statistic: Maximum
Threshold: 0
ESSoftwareUpdateEvent:
Condition: HasAlertTopic
Type: 'AWS::Events::Rule'
Properties:
Description: 'Alerts and notifications from ES software updates.'
EventPattern:
source:
- 'aws.es'
'detail-type':
- 'Amazon ES Service Software Update Notification'
resources:
- !GetAtt 'ElasticsearchDomain.Arn'
detail:
status:
- Failed
- Available
- Completed
- Required
State: ENABLED
Targets:
- Arn: {'Fn::ImportValue': !Sub '${ParentAlertStack}-TopicARN'}
Id: rule
Outputs:
TemplateID:
Description: 'cloudonaut.io template id.'
Expand Down

0 comments on commit a25f027

Please sign in to comment.