azurerm_service_fabric_cluster
资源需要一个或多个node_type
块:
resource "azurerm_service_fabric_cluster" "processing" {
...
node_type {
name = "foo"
client_endpoint_port = 19000
...
}
node_type {
name = "bar"
client_endpoint_port = 19001
...
}
}
我想通过node_type
或按索引访问特定name
块的属性。令人惊讶的是,这在调用terraform plan
时不会出错:
resource "azurerm_lb_probe" "service_fabric_client_endpoint" {
port = "${azurerm_service_fabric_cluster.processing.node_type.client_endpoint_port}"
...
}