summaryrefslogtreecommitdiff
path: root/test/integration/targets/sns_topic/templates/updated-policy.json
blob: c796bb4d10c992dd5fa3323c15716ff7b1029727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
    "Version":"2012-10-17",
    "Id":"SomePolicyId",
    "Statement" :[
        {
            "Sid":"ANewSid",
            "Effect":"Allow",
            "Principal" :{
                "AWS":"{{ sns_arn.split(':')[4] }}"
              },
            "Action":["sns:Subscribe"],
            "Resource": "{{ sns_arn }}",
            "Condition" :{
                "StringEquals" :{
                    "sns:Protocol":"email"
                 }
            }
        }
    ]
}