Manage Notification Policies for Amazon SNS
Who can use this feature
Anyone with these permissions: Manage notification policies
This article explains how to create notification policies that send notifications to an Amazon Simple Notification Service (SNS) topic.
Amazon SNS allows you to publish notifications to subscribers, such as email recipients, SMS recipients, or Lambda or HTTP endpoints. To use Amazon SNS as a communication channel, you need to create an SNS topic and supply the topic’s ARN in your notification policy. You manage the subscribers in your AWS account.
A notification policy can send notifications to a single SNS topic. To send notifications to multiple SNS topics, you’ll need to create a separate notification policy for each topic.
Create a notification policy for Amazon SNS
Before you start
Make sure you’re logged in with permissions to modify access policies for the relevant Amazon SNS topic.
Allow Eon to publish to the SNS topic
In your AWS account, Eon needs permissions to publish messages to the SNS topic you want to send notifications to.
To give the necessary permissions, append the highlighted object to the Statement array in the topic’s access policy, as shown in the following code block.
Replace {SNS_TOPIC_ARN} with the topic’s ARN:
arn:aws:iam::058264520728:root and arn:aws:iam::010438478826:root are the ARNs for the Eon control plane and disaster recovery accounts, respectively.
Those are the AWS accounts you’re giving SNS publish permissions to with this policy.
If encrypted: Allow Eon to use the KMS key
If your SNS topic is encrypted, Eon needs to be able to use the KMS key to encrypt the message contents.
To do this, append the highlighted object to the Statement array in the topic’s key policy, as shown in the following code block.
Replace {KMS_KEY_ARN} with the key’s ARN:
As in the previous step, this policy allows Eon’s control plane and disaster recovery accounts to use the KMS key to encrypt and decrypt messages published to the SNS topic.
Create the notification policy in Eon
-
In your project’s Notification Policies page in the Eon console, click Create Notification Policy. The Create a Notification Policy wizard opens.
-
Enter a Notification policy name that describes the SNS topic notifications will be sent to.
-
Choose the Amazon SNS notification channel type, then click Next.
-
Enter the Topic ARN of the SNS topic you want to send notifications to.
-
Click Next to continue.
Choose the notifications to send
-
Pick the events you want to subscribe the SNS topic to.
-
Optionally, set event conditions to filter which events trigger notifications:
To filter notifications to specific events, turn Apply event conditions on. With conditions turned on, you’ll receive notifications only for events that match the conditions you set.
To leave Apply event conditions off, you’ll receive notifications for all events of the selected types.
When you turn Apply event conditions on, click Set Condition to choose the event properties you want to filter by. You can filter by vaults, backup policies, resources, or source accounts.
You can set a simple AND or OR list of conditions, or you can group conditions for fine-tuned event filtering.
See how to work with conditions and groups
Work with conditions
-
To add a condition: Click (Add condition), then select the property, operator, and value for the condition.
-
To add a condition within a group: Click the large (Add condition) button in the group, or select (Add condition) > Add condition > Above or Below. Then select the property, operator, and value for the condition.
-
To delete a condition: Click the condition’s (Actions) menu, then click Delete condition.
For each condition, set the property, operator, and value.
Work with groups
-
To nest an existing condition or group in a group: In an existing condition or group, click (Actions) > Create group. Select the group’s logical AND or OR operator.
-
To delete a group and all the conditions it contains: Click the group’s (Actions) menu, then click Delete group.
-
-
When you’re done, click Test and Create.
Your notification policy is now set up, and you’ll receive notifications of the subscribed events at your SNS subscriber endpoints.