Output sensitive data with Terraform

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

你可能感兴趣的:(Output sensitive data with Terraform)