前往小程序,Get更优阅读体验!
立即前往
发布
社区首页 >专栏 >Output sensitive data with Terraform

Output sensitive data with Terraform

作者头像
轻量级云原生架构实验室
发布2022-11-29 16:58:50
发布2022-11-29 16:58:50
6040
举报
文章被收录于专栏:轻量级微服务

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

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Solution 1:
  • Solution 2:
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档