I have the requirement to configure Grafana alerting using SNS located in a different AWS account than Grafana's. Unfortunately, it doesn't work as it should.
NOTE: When SNS topic is created in the same AWS account as Managed Grafana – everything works good.
STEPS to reproduce
AWS_ACCOUNT_SNS – account where SNS topic is created
AWS_ACCOUNT_GRAFANA – account where Managed Grafana is created
In AWS_ACCOUNT_SNS created IAM Role sns-assume-role
Configured the Contanct Point in Managed Grafana to use SNS. Select Workspace IAM Role as Auth Provider. In Topic field included: arn:aws:sns:us-east-1:AWS_ACCOUNT_GRAFANA:grafana-core-managed-grafana-sns
--
The similar IAM approach I have been using to allow Managed Grafana reading logs from CloudWatch located in different AWS account – and it works good. I would expect it will work in a similar manner for Grafana alerting OR documentation which explains how to achieve cross-account configuration for SNS and Managed Grafana.
I have the requirement to configure Grafana alerting using SNS located in a different AWS account than Grafana's. Unfortunately, it doesn't work as it should.
NOTE: When SNS topic is created in the same AWS account as Managed Grafana – everything works good.
STEPS to reproduce
AWS_ACCOUNT_SNS
– account where SNS topic is createdAWS_ACCOUNT_GRAFANA
– account where Managed Grafana is createdAWS_ACCOUNT_SNS
created IAM Rolesns-assume-role
AWS_ACCOUNT_SNS
created IAM policy as below and attached it tosns-assume-role
roleAWS_ACCOUNT_SNS
created SNS topicgrafana-core-managed-grafana-sns
with access policy "Allow everyone to publish"AWS_ACCOUNT_GRAFANA
created IAM Policy and attached the policy to Managed Grafana Workspace IAM role.Auth Provider
. InTopic
field included: arn:aws:sns:us-east-1:AWS_ACCOUNT_GRAFANA:grafana-core-managed-grafana-sns--
The similar IAM approach I have been using to allow Managed Grafana reading logs from CloudWatch located in different AWS account – and it works good. I would expect it will work in a similar manner for Grafana alerting OR documentation which explains how to achieve cross-account configuration for SNS and Managed Grafana.