【问题标题】:How to call Environment Variables from Azure Devops Variable Groups in Terraform files?如何从 Terraform 文件中的 Azure Devops 变量组调用环境变量?
【发布时间】:2022-01-12 19:58:39
【问题描述】:

变量在 Terraform 文件中声明。环境变量在 Azure DevOps 中声明为 TF_VAR_example。当管道运行时,它仍然卡在 terraform 计划中,等待该值的输入。

【问题讨论】:

    标签: azure azure-devops terraform azure-pipelines terraform-provider-azure


    【解决方案1】:

    您需要在任务的 env 部分中定义它们:

      - task: Bash@3
        displayName: 'TF_plan'
        env:
          TF_VAR_example: $(TF_VAR_example)
    

    【讨论】:

      猜你喜欢
      • 2020-04-02
      • 2020-10-14
      • 2021-11-04
      • 2020-06-21
      • 2020-01-15
      • 1970-01-01
      • 2020-03-10
      • 1970-01-01
      • 2021-08-21
      相关资源
      最近更新 更多