Output sensitive data with Terraform

2022-11-29 16:58:50 浏览数 (1)

Solution 1:

Use the nonsensitive function in the output

代码语言:txt复制
output "token_value" {
 value = nonsensitive(tfe_team_token.test.token)
}

Solution 2:

Output the data raw

Add the sensitive option to the output

代码语言:txt复制
output "token_value" {
 value = tfe_team_token.test.token
 sensitive = true
}

Use terraform output command

代码语言:txt复制
terraform output -raw token_value

0 人点赞