From 858531242fe50489162452116c2e214c965780ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Mon, 4 Dec 2023 17:09:06 +0000 Subject: [PATCH] infra: send email through ses (#261) --- terraform/cognito.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/terraform/cognito.tf b/terraform/cognito.tf index 489448e0..1d670ba1 100644 --- a/terraform/cognito.tf +++ b/terraform/cognito.tf @@ -1,7 +1,6 @@ # TODO: # - custom_domain # - sms_configuration -# - email_sending_account = "DEVELOPER" resource "aws_cognito_user_pool" "pool" { name = "${local.namespace}-pool" @@ -56,7 +55,9 @@ resource "aws_cognito_user_pool" "pool" { } email_configuration { - email_sending_account = "COGNITO_DEFAULT" + email_sending_account = "DEVELOPER" + source_arn = data.aws_ses_domain_identity.main.arn + from_email_address = "no-reply@${local.mail_domain}" } password_policy {