Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jun 23, 2022
1 parent b8e823b commit 2434366
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ resource "aws_iam_user_group_membership" "user_groups" {
# enable email in SES
#---
resource "aws_ses_email_identity" "user_send_mail" {
count = var.enable_sending_mail && local.email_address != "" ? 1 : 0
email = local.email_address
# count = var.enable_sending_mail && local.email_address != "" ? 1 : 0
for_each = var.enable_sending_mail && local.email_address != "" ? { local.username = local.email_address } : {}
# email = local.email_address
email = each.value
}

#---
Expand Down

0 comments on commit 2434366

Please sign in to comment.