Skip to content

Commit

Permalink
adding permissions
Browse files Browse the repository at this point in the history
- Allowing SES to use CMK for SNS topic through resource policy
  • Loading branch information
awskaran committed May 26, 2022
1 parent 3df7567 commit b56433f
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,22 @@ def __init__(
)
)

sns_kms_key.add_to_resource_policy(
iam.PolicyStatement(
effect=iam.Effect.ALLOW,
principals=[
iam.ServicePrincipal("ses.amazonaws.com"),
],
resources=[
"*",
],
actions=[
"kms:GenerateDataKey*",
"kms:Decrypt",
],
)
)

# Custom resource to handle email identity verification
ses_sender_email_verification = EmailIdentityVerificationCustomResource(
self,
Expand Down

0 comments on commit b56433f

Please sign in to comment.