Output sensitive data with Terra

2022-11-24  本文已影响0人  Anoyi

Solution 1:

Use the nonsensitive function in the output

output "token_value" {
 value = nonsensitive(tfe_team_token.test.token)
}

Solution 2:

Output the data raw

Add the sensitive option to the output

output "token_value" {
 value = tfe_team_token.test.token
 sensitive = true
}

Use terraform output command

terraform output -raw token_value
上一篇 下一篇

猜你喜欢

热点阅读