【发布时间】:2022-01-12 19:58:39
【问题描述】:
变量在 Terraform 文件中声明。环境变量在 Azure DevOps 中声明为 TF_VAR_example。当管道运行时,它仍然卡在 terraform 计划中,等待该值的输入。
【问题讨论】:
标签: azure azure-devops terraform azure-pipelines terraform-provider-azure
变量在 Terraform 文件中声明。环境变量在 Azure DevOps 中声明为 TF_VAR_example。当管道运行时,它仍然卡在 terraform 计划中,等待该值的输入。
【问题讨论】:
标签: azure azure-devops terraform azure-pipelines terraform-provider-azure
您需要在任务的 env 部分中定义它们:
- task: Bash@3
displayName: 'TF_plan'
env:
TF_VAR_example: $(TF_VAR_example)
【讨论】: