Skip to content

Commit

Permalink
Merge pull request #74 from HicResearch/73-errors-while-deploying-egr…
Browse files Browse the repository at this point in the history
…ess-backend-app

adding permissions
  • Loading branch information
manics authored May 26, 2022
2 parents 3e9f04d + b56433f commit b0956dd
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 b0956dd

Please sign in to comment.