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 Respuesta
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

respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas