我试图创建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