Skip to content

Commit

Permalink
fix lowercase() statement
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Sep 13, 2022
1 parent 0aa9a02 commit eac57db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@
* 2.8.1 -- 2022-08-12
- fix create_profile to edit census-do1 to do2-govcloud
- generate only if access_keys enabled

* 2.8.2 -- 2022-09-13
- fix lowercase() -> lower()
7 changes: 2 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,8 @@ 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
# 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 = lower(each.value)
for_each = var.enable_sending_mail ? toset(coalesce([lower(var.email_address)], module.user_email.search_result["attribute_value"])) : toset([])
email = lower(each.key)
}

#---
Expand Down
2 changes: 1 addition & 1 deletion version.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
_module_name = "aws-iam-user"
_module_version = "2.8.1"
_module_version = "2.8.2"
}

0 comments on commit eac57db

Please sign in to comment.