From 936d0f108606dd380691c9bb4bdce8c511df5246 Mon Sep 17 00:00:00 2001 From: Nikolay Kolev Date: Tue, 6 Sep 2022 13:03:17 -0700 Subject: [PATCH] fix: Fixed iam-user module when `encrypted_ses_smtp_password_v4` is `null` (#275) --- modules/iam-user/outputs.tf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/iam-user/outputs.tf b/modules/iam-user/outputs.tf index 7a1167ea..98dadef0 100644 --- a/modules/iam-user/outputs.tf +++ b/modules/iam-user/outputs.tf @@ -1,6 +1,7 @@ locals { - has_encrypted_password = length(compact(aws_iam_user_login_profile.this[*].encrypted_password)) > 0 - has_encrypted_secret = length(compact(aws_iam_access_key.this[*].encrypted_secret)) > 0 + has_encrypted_password = length(compact(aws_iam_user_login_profile.this[*].encrypted_password)) > 0 + has_encrypted_secret = length(compact(aws_iam_access_key.this[*].encrypted_secret)) > 0 + has_encrypted_ses_smtp_password_v4 = length(compact(aws_iam_access_key.this[*].encrypted_ses_smtp_password_v4)) > 0 } output "iam_user_name" { @@ -120,7 +121,7 @@ EOF output "keybase_ses_smtp_password_v4_decrypt_command" { description = "Decrypt SES SMTP password command" - value = !local.has_encrypted_secret ? null : <