VladRassokhin / intellij-hcl

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

Missing subnet_id on azurerm_network_interface completion #284

Closed tracphil closed 4 years ago

tracphil commented 4 years ago

Prerequisites

Installation details

Terraform Configuration Files

N/A

Expected Behavior

resource "azurerm_network_interface" "" {
  location            = ""
  name                = ""
  resource_group_name = ""
  ip_configuration {
    name                          = ""
    private_ip_address_allocation = ""
    subnet_id                     = ""
  }
}

Actual Behavior

resource "azurerm_network_interface" "" {
  location            = ""
  name                = ""
  resource_group_name = ""
  ip_configuration {
    name                          = ""
    private_ip_address_allocation = ""
  }
}

Steps to Reproduce

  1. Create new resource for azurerm_network_interface
  2. Invoke completion.
VladRassokhin commented 4 years ago

That's expected behaviour as of now, could have been different in January. Plugin follows schema grabbed from provider sources where 'subnet_ip' marked as Optional.

Also documentation states the same:

subnet_id - (Optional) The ID of the Subnet where this Network Interface should be located in. Note: This is required when private_ip_address_version is set to IPv4.

'Note' is not in the plugin easily accessible code, so plugins doesn't know about it.