docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-amazon-sns.md
Use the Amazon SNS integration in a contact point to send alert notifications to a SNS topic. Then, configure the SNS topic to forward notifications to distinct subscriber channels used in your SNS account.
Before you begin, ensure you have the following:
For a minimal setup, refer to Example using an Access Key.
To create a contact point with a SNS integration, complete the following steps.
For more details on contact points, including how to test them and enable notifications, refer to Configure contact points.
https://sns.us-east-2.amazonaws.com. If not specified, the SNS API URL from the SNS SDK will be used.Both
Access KeyandSecret Keymust be provided together or left blank together.If left blank, Grafana searches for credentials using the default credentials chain, including environment variables (
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY), the shared credential file, and EC2 instance roles.
Phone number or Target ARN. If you are using a FIFO SNS topic you should set a message group interval longer than 5 minutes to prevent messages with the same group key being deduplicated by the SNS default deduplication window.SNS topic ARN or Target ARN.SNS topic ARN or Phone number.default.title). It cannot be an empty string.default.message).This section outlines a minimal setup to configure Amazon SNS with Alerting.
Navigate to SNS in AWS Console:
Create a new topic:
My-Topic.(Optional) Add an email subscriber to help test:
Email.Navigate to IAM in AWS Console:
Create a new policy:
On the Policies page, choose "Create policy".
Switch to the "JSON" tab and paste the following policy, replacing Resource with your SNS topic ARN:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["sns:Publish", "sns:GetTopicAttributes"],
"Resource": "arn:aws:sns:<region>:<account_id>:<topic_name>"
}
]
}
Click "Next", name it (e.g., SNSPublishPolicy), and click "Create policy".
Create a new IAM user and assign the policy
alerting-sns-user.SNSPublishPolicy) and select it.Create an Access Key:
Application running outside AWS.Follow the steps in configure Amazon SNS for a contact point, using the settings below and replacing the placeholders with the SNS and IAM values created in the previous steps.
https://sns.<region>.amazonaws.com<region><YOUR_ACCESS_KEY>.<YOUR_SECRET_ACCESS_KEY>arn:aws:sns:<region>:<account_id>:<topic_name>Test the contact point to ensure it's working, or enable notifications for it.