Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add AWS Health event rule #164

Open
sgzijl opened this issue Apr 5, 2018 · 1 comment
Open

add AWS Health event rule #164

sgzijl opened this issue Apr 5, 2018 · 1 comment

Comments

@sgzijl
Copy link
Contributor

sgzijl commented Apr 5, 2018

(This is an issue tracker! You will probably find an answer to your question on Stack Overflow. If not, use the tag amazon-cloudformation to post your question, and the chances are high that we or someone from the community will point you in the right direction. We are not able to answer your questions via email or the project's issue tracker.)

(Override all values in parentheses)


TemplateID: operations/aws-health.yaml
Region: any

This is not an issue, but an idea/feature request.

I think it might be useful to add an AWS health notifications template, so that issues and scheduled changes are reported to the operations/alert sns topic.

The template could look something like:

AWSTemplateFormatVersion: 2010-09-09
Description: 'AWS Health: publish issues and scheduled changes to operations/alert topic'
Metadata:
  'AWS::CloudFormation::Interface':
    ParameterGroups:
    - Label:
        default: 'Parent Stacks'
      Parameters:
      - ParentAlertStack
Parameters:
 ParentAlertStack:
    Description: 'Stack name of parent alert stack based on operations/alert.yaml template.'
    Type: String
    Default: ''
Resources:
  CloudWatchEventRule: 
    Type: "AWS::Events::Rule"
    Properties: 
      Description: "send all AWS Health notifications to SNS"
      EventPattern: 
        source: 
          - "aws.health"
      State: "ENABLED"
      Targets: 
        - 
          Arn:
            'Fn::ImportValue': !Sub '${ParentAlertStack}-TopicARN'
          Id: "HealthTopic"
Outputs:
  TemplateID:
    Description: 'template id'
    Value: 'operations/awshealth'
  CloudWatchEventRule:
    Description: 'The created CloudWatch event rule'
    Value: !Ref CloudWatchEventRule
    Export:
      Name: !Sub '${AWS::StackName}-CloudWatchEventRule'

Users then get notified when AWS is facing platform issues or schedules a change (eg: RDS maintenance), et cetera.

Let me know what you think...

Greetz, Siert

@michaelwittig
Copy link
Contributor

I like the idea. I started something similar (in a separate repo) https://github.com/marbot-io/monitoring-jump-start/blob/master/marbot.yml#L448 but we could copy some parts to this repo as well. In fact, some parts are already copied :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants