Auto scaling group not publishing notification to a encrypted sns topic

0

I have tested the integration between asg and my sns topic working without encryption. However when I encrypted the sns topic with customer managed kms key, I'm no longer receiving notification from asg (confirmed from sns cloudwatch metrics), I have granted asg service permission to generate*, encrypt*, decrypt* permission on the key but still not working. Can you advice anything else I should check?

Reply to first comment: The account already has full access to the key as admin. I also don't see any relevant cloudtrail event to that key except creation. ASG might not be the service trying to publish to the topic the reason I think it should be asg is before I add encryption I only grant asg permission to publish to the sns topic.

1 個回答
0

Try this ststement on the key policy:

"Statement": [ { "Sid": "Allow Key utilization", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::ACCOUNT_ID:root" ] }, "Action": [ "kms:Decrypt", "kms:GenerateDataKey*" ], "Resource": "*" },

That would allow all the services in the account to use encrypt/decrypt using the key, ASG might not be the service trying to publish to the topic.

Another thing that helps a lot is to check CloudTrail Event History around the time the message should have sent, including the "Error code" field

已回答 1 年前

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

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

回答問題指南