Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.48 KB

AccountAlertTopics.md

File metadata and controls

20 lines (14 loc) · 1.48 KB

AccountAlertTopics

This template creates three SNS topics in your account for Critical, Error and Info Alerts. It can additionally deploy a Lambda to send messages to a Slack Webhook (stored in Secrets Manager).

The three SNS Topic are exported from this template and can be leveraged with the ImportValue feature in cloudformation. Those exports are:

  • SNSAlertsCriticalArn
  • SNSAlertsErrorArn
  • SNSAlertsInfoArn

You must specifiy an email and SMS number. The email will be subscribed to all three topics, and the SMS number will be subscribed to the Critical Topic

Deploy

  1. Create a Secret in AWS Secrets Manager for your Slack Webhook
{"webhook_url": "https://hooks.slack.com/services/THISPARTISSECRET"}
  1. Deploy from the quicklink

Or you can deploy it via the Direct Link to S3: https://s3.amazonaws.com/pht-cloudformation/aws-account-automation/AccountAlertTopics-Template.yaml