VladRassokhin / intellij-hcl

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

Add support for "azurerm_netapp_volume" - support the "mount_ip_addresses" property #304

Closed steve-reichert-kr closed 4 years ago

steve-reichert-kr commented 4 years ago

Thank you for opening an issue. In this template paragraph text could be removed, however please retain headers.

Prerequisites

Installation details

Terraform Configuration Files

# Copy-paste your Terraform configuration here - for large Terraform configs,
# please use a gist (https://gist.github.com) and share a link. 
data "template_file" "init" {
  template = file("./files/cloud-init.sh")
  vars = {
    subscription_id      = var.subscription_id
    resource_group_name  = var.resource_group_name

    ansible_user_id               = var.ansible_user_id
    ansible_password              = var.ansible_password
    ansible_workflow_template_uri = var.ansible_workflow_template_uri
    ansible_inventory_uri         = var.ansible_inventory_uri
    ansible_nfs_mount_path        = format("/%s", azurerm_netapp_volume.na_volume.name)
    ansible_nfs_source            = format("%s:/%s", data.azurerm_netapp_volume.netapp-volume.mount_ip_addresses[0], azurerm_netapp_volume.na_volume.volume_path)
  }
}

Exception

Expected Behavior

Plugin does not support "azurerm_netapp_volume" the "mount_ip_addresses" property

What should have happened? "mount_ip_address" should have been shown via auto completion and not result in a error in the terraform script.

Actual Behavior

Use of the "mount_ip_addresses" property shows as an error and is not displayed via auto completion.

Steps to Reproduce

Attempt to use the property in a terraform script.

haidaraM commented 4 years ago

Did you consider the note in the Readme: https://github.com/VladRassokhin/intellij-hcl#terraform-external-metadata about updating the metadata ? It should fix the issue

VladRassokhin commented 4 years ago

Updated metadata one again in 0.7.10