VladRassokhin / intellij-hcl

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

[GCP] Missing ports block from container block of google_cloud_run_service resource #316

Closed 1oglop1 closed 3 years ago

1oglop1 commented 4 years ago

Hi my IDE is reporting non-existing block ports for google_cloud_run_service however it exists here:

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_run_service#ports

Prerequisites

Installation details

Terraform Configuration Files

image

Exception

Unknown block type ports 

Expected Behavior

All blocks and sub-blocks should be in the whisper

Actual Behavior

ports are missing

Steps to Reproduce

  1. Use this block:
    
    terraform {
    required_providers {
    google = {
      source = "hashicorp/google"
      version = ">= 3.47.0"
    }
    }
    required_version = "~> 0.13.5"
    }

resource google_cloud_run_service "tenant_setup" { project = var.project_id location = var.location name = "${local.name}-setup"

template { spec { service_account_name = google_service_account.terraform.name

  containers {
    image = var.tenant_provisioner_image

    ports {
      container_port = var.container_port
    }
  }
}

} }


2. Hover over `ports`and inspect the false positive
VladRassokhin commented 3 years ago

Fixed in 0.7.12