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

Output sensitive data with Terraform

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

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:
相关产品与服务
云资源自动化 for Terraform
云资源自动化 for Terraform(Tencent Infrastructure Automation for Terraform)是腾讯云基于全球备受欢迎的基础设施即代码(Infrastructure as Code)工具 Terraform 插件扩展体系下,提供的腾讯云资源部署、实施和管理的自动化能力,将 Terraform 完善成熟的基础设施自动化工具能力和腾讯云的云资源服务能力相互联接,让客户可以方便地实施 DevOps 和多云部署等模式。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档