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 : <