Enforce Encryption on SNS creation by SCP

0

I would like to create an SCP to enforce encryption on SNS creation. I am creating the below policy but it failed.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Statement1", "Effect": "Deny", "Action": [ "sns:CreateTopic" ], "Resource": "*", "Condition": { "StringNotEquals": { "KmsMasterKeyId": "alias/aws/sns" } } } ] }

1 個回答
0

Unfortunately I do not believe that the SNS service supports the KmsMasterKeyId as a conditional:
https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonsns.html
As such the policy will not work as the string will always "not equal" and then fail through the Deny.

AWS
Craig_S
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南