Skip to content

Instantly share code, notes, and snippets.

@stevenjack
Created March 26, 2015 10:38
Show Gist options
  • Save stevenjack/4e3ebae5473572ed177a to your computer and use it in GitHub Desktop.
Save stevenjack/4e3ebae5473572ed177a to your computer and use it in GitHub Desktop.
{
"Version": "2008-10-17",
"Id": "AlarmTopicPolicy",
"Statement": [
{
"Sid": "Allow-Publish-Subscribe-AlarmTopicPolicy",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": [
"SNS:Publish",
"SNS:Subscribe"
],
"Resource": "arn:aws:sns:eu-west-1:240129357028:live-Siren-LiveMonitoringSirenResources-AlarmTopic-FHDA22R099AS",
"Condition": {
"ArnLike": {
"aws:SourceArn": "arn:aws:cloudwatch:eu-west-1:240129357028:alarm:live-*"
}
}
},
{
"Sid": "Publish-AlarmTopicPolicy",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::240129357028:root"
},
"Action": "SNS:Publish",
"Resource": "arn:aws:sns:eu-west-1:240129357028:live-Siren-LiveMonitoringSirenResources-AlarmTopic-FHDA22R099AS"
},
{
"Sid": "Subscribe-AlarmTopicPolicy",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::240129357028:root"
},
"Action": "SNS:Subscribe",
"Resource": "arn:aws:sns:eu-west-1:240129357028:live-Siren-LiveMonitoringSirenResources-AlarmTopic-FHDA22R099AS"
}
]
}
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "Allow-BBC-production-account-to-subscribe-to-topic",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::240129357028:root"
},
"Action": "sns:Subscribe",
"Resource": "arn:aws:sns:eu-west-1:755368653476:shared-monitoring-topic-MetricAlarmTopic-9QXWSSNKPPEF"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment