Skip to content

Commit

Permalink
infra: send email through ses (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio authored Dec 4, 2023
1 parent a03ee7b commit 8585312
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terraform/cognito.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# TODO:
# - custom_domain
# - sms_configuration
# - email_sending_account = "DEVELOPER"

resource "aws_cognito_user_pool" "pool" {
name = "${local.namespace}-pool"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8585312

Please sign in to comment.