VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

[incorrect warning] azurerm_subnet . address_prefixes #296

Closed sogaoh closed 4 years ago

sogaoh commented 4 years ago

Prerequisites

Installation details

Terraform Configuration Files


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 )

Exception

(none: Only WARNING)

Expected Behavior

No WARNING showed.

Actual Behavior

Steps to Reproduce

  1. Generate a new .tf file.
  2. Copy & paste example_subnet.tf content. (See above section Terraform Configuration Files)