Skip to content

Commit

Permalink
fix: Set sensitive=true for sensitive outputs and use tolist() (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko authored Apr 15, 2021
1 parent 50e46b3 commit 7553adb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/iam-user/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ output "this_iam_access_key_encrypted_secret" {
output "this_iam_access_key_secret" {
description = "The access key secret"
value = module.iam_user.this_iam_access_key_secret
sensitive = true
}

output "this_iam_access_key_ses_smtp_password_v4" {
description = "The secret access key converted into an SES SMTP password"
value = module.iam_user.this_iam_access_key_ses_smtp_password_v4
sensitive = true
}

output "this_iam_access_key_status" {
Expand Down
2 changes: 1 addition & 1 deletion modules/iam-assumable-role/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
role_sts_externalid = flatten(list(var.role_sts_externalid))
role_sts_externalid = flatten(tolist(var.role_sts_externalid))
}

data "aws_iam_policy_document" "assume_role" {
Expand Down
2 changes: 2 additions & 0 deletions modules/iam-user/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ output "this_iam_access_key_id" {
output "this_iam_access_key_secret" {
description = "The access key secret"
value = element(concat(aws_iam_access_key.this_no_pgp.*.secret, [""]), 0)
sensitive = true
}

output "this_iam_access_key_key_fingerprint" {
Expand All @@ -65,6 +66,7 @@ output "this_iam_access_key_ses_smtp_password_v4" {
),
0
)
sensitive = true
}

output "this_iam_access_key_status" {
Expand Down

0 comments on commit 7553adb

Please sign in to comment.