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
- Create a Secret in AWS Secrets Manager for your Slack Webhook
{"webhook_url": "https://hooks.slack.com/services/THISPARTISSECRET"}
- 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