VladRassokhin / intellij-hcl

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

Multiple attributes for google_compute_ha_vpn_gateway marked as "unresolved reference" #287

Closed metroshica closed 4 years ago

metroshica commented 4 years ago

Prerequisites

Installation details

 - [x] intellij-hcl plugin version (`Settings->Plugins`)

0.7.7

 - [x] Terraform version (`terraform -v`)

0.12.20

### Terraform Configuration Files
```hcl
provider "google-beta" {
  version     = "~> 3.5.0"
}

resource "google_compute_ha_vpn_gateway" "ha-vpn1" {
  provider = google-beta
  name     = "ha-vpn1"
  network  = var.gcp_network_name
}

Exception

For exceptions paste exception stack trace here. If it's huge one - use gist.

Expected Behavior

No warnings should appear.

Actual Behavior

vpn_interfaces highlighted red with the message: Unresolved reference vpn_interfaces List of attributes affected:

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Copy and paste Terraform configuration file above to see highlighted attribute.
  2. Replace highlighted attribute with attributes from list.
VladRassokhin commented 4 years ago

There's no 'vpn_interfaces' in sample code, though I'm sure issue is resolved by updating terraform metadata in 0.7.8