【发布时间】:2019-06-05 21:39:05
【问题描述】:
我正在尝试在本地运行 terraform,但它应该连接到 azure 机器。我们有 azure 代理可以做到这一点。如果我在本地运行它,它将帮助我更快地移动。
这是我的命令
terraform init -reconfigure -backend-config ~/common.tfvars
这是错误
Initializing modules... │··················································
- module.kubernetes │··················································
- module.database │··················································
- module.trafficmanager │··················································
- module.appInsights │··················································
│··················································
Initializing the backend... │··················································
│··················································
Error configuring the backend "azurerm": resource_group_name and credentials must be provided when access_key is absent │··················································
│··················································
Please update the configuration in your Terraform files to fix this error │··················································
then run this command again.
猫 ~/common.tfvars
resource_group_name = "myproject-nst-config-RG"
storage_account_name = "myprojectnstterraform"
container_name = "tfstatemyprojectact"
key = "nstproject"
我错过了什么?我想要的甚至可能吗? 谢谢!
【问题讨论】:
标签: azure terraform terraform-provider-azure