Closed sogaoh closed 4 years ago
resource "azurerm_subnet" "example-subnet" { name = "example-subnet" virtual_network_name = azurerm_virtual_network.example_vnet.name resource_group_name = azurerm_resource_group.example_rg.name address_prefixes = ["172.31.20.0/24"] #address_prefix = "172.31.20.0/24" }
(same as https://gist.github.com/sogaoh/e7e32724cd62acdece46b72cc80b867a )
(none: Only WARNING)
No WARNING showed.
Missing required properties: address_prefix showed.
Missing required properties: address_prefix
[supplement] When run terraform plan on using address_prefix , the warinig message Warning: "address_prefix": [DEPRECATED] Use the 'address_prefixes' property instead. showed.
terraform plan
address_prefix
Warning: "address_prefix": [DEPRECATED] Use the 'address_prefixes' property instead.
.tf
example_subnet.tf
Terraform Configuration Files
Prerequisites
Installation details
Terraform Configuration Files
(same as https://gist.github.com/sogaoh/e7e32724cd62acdece46b72cc80b867a )
Exception
(none: Only WARNING)
Expected Behavior
No WARNING showed.
Actual Behavior
Missing required properties: address_prefix
showed.[supplement] When run
terraform plan
on usingaddress_prefix
, the warinig messageWarning: "address_prefix": [DEPRECATED] Use the 'address_prefixes' property instead.
showed.Steps to Reproduce
.tf
file.example_subnet.tf
content. (See above sectionTerraform Configuration Files
)