【发布时间】:2021-11-25 13:22:00
【问题描述】:
尝试使用 azure devops 管道使用 terraform 构建 AKS,我希望我可以从 prod_terraform.tfvars 文件中传递变量值 我想运行“terraform plan -var-file = prod_terraform.tfvars”
这里是yaml代码
- task: TerraformCLI@0
displayName: Terraform Plan
inputs:
command: 'plan'
workingDirectory: '$(System.DefaultWorkingDirectory)/terraform-manifests'
commandOptions: '-out aks_cluster.tfplan'
allowTelemetryCollection: false
下面是错误
/opt/hostedtoolcache/terraform/1.0.8/x64/terraform plan -out aks_cluster.tfplan
Acquiring state lock. This may take a few moments...
var.acr_demo
Enter a value:
##[error]The operation was canceled.
Finishing: Terraform Plan
【问题讨论】:
标签: azure-devops terraform azure-pipelines terraform-provider-azure