Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jun 23, 2022
1 parent 2434366 commit 41a55ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ resource "aws_iam_user_group_membership" "user_groups" {
#---
resource "aws_ses_email_identity" "user_send_mail" {
# count = var.enable_sending_mail && local.email_address != "" ? 1 : 0
for_each = var.enable_sending_mail && local.email_address != "" ? { local.username = local.email_address } : {}
# for_each = var.enable_sending_mail && local.email_address != "" ? { local.username = local.email_address } : {}
for_each = var.enable_sending_mail ? { local.username = coalesce(lowercase(var.email_address), module.user_email.search_result["attribute_value"][0]) } : {}
# email = local.email_address
email = each.value
}
Expand Down

0 comments on commit 41a55ff

Please sign in to comment.