"Notification from AWS Backup". When this subject is present, the message body is parsed for backup job details.
Message parsing
AWS Backup sends free-text messages rather than structured JSON. The module extracts three fields using regex patterns:| Field | Regex pattern used |
|---|---|
| BackupJob ID | (BackupJob ID : ).* |
| Resource ARN | (Resource ARN : ).*[.] |
| Recovery point ARN | (Recovery point ARN: ).*[.] |
Slack message title
The title is taken from the first sentence of the message body (everything before the first.). The module then prepends an emoji based on the job outcome:
- If the title contains
"completed"→ prefixed with✅ - If the title contains
"failed"→ prefixed with⚠️
Setting up AWS Backup to publish to the SNS topic
You configure notifications at the AWS Backup vault level. The vault publishes job events to an SNS topic, which you point at the same topic the module manages.Grant AWS Backup permission to publish to the SNS topic
Add a resource-based policy to the SNS topic that allows the Backup service to publish:
The SNS subject
"Notification from AWS Backup" is set automatically by the Backup service. You do not need to configure this manually.