我試圖創建Terraform.io資源組與此example.tf文件:Terraform國道
# Configure Azure provider
provider "azurerm" {
subscription_id = "${var.azure_subscription_id}"
client_id = "${var.azure_client_id}"
client_secret = "${var.azure_client_secret}"
tenant_id = "${var.azure_tenant_id}"
}
# Create a resource group
resource "azurerm_resource_group" "terraform-rg" {
name = "terraform-rg"
location = "ukwest"
}
一切順利,似乎,但我稍微擔心在此消息結束:
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
The state of your infrastructure has been saved to the path
below. This state is required to modify and destroy your
infrastructure, so keep it safe. To inspect the complete state
use the `terraform show` command.
State path:
所以「舞臺路徑」是空的,它似乎很重要。是否有一個論點我應該傳遞給「terraform apply」或放在tf文件中的其他地方,以便我得到一個狀態路徑?
謝謝!這是有道理的:) – zapatilla