VladRassokhin / intellij-hcl

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

ec provider - unknown block type elasticsearch (and others) #341

Open matschaffer opened 3 years ago

matschaffer commented 3 years ago

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

Prerequisites

Installation details

Terraform v1.0.1

Terraform Configuration Files

provider "ec" {
}

terraform {
  required_version = "1.0.1"
  required_providers {
    ec = {
      source = "elastic/ec"
      version = "0.2.1"
    }
  }
}
locals {
  stack_version = "7.13.2"
}
resource "ec_deployment" "example_minimal" {

  # Mandatory fields
  region                 = "gcp-asia-northeast1"
  version                = local.stack_version
  deployment_template_id = "gcp-io-optimized"

  elasticsearch {
    zone_count = 3

    //noinspection HCLUnknownBlockType
    topology {
      id   = "hot_content"
      size = "8g"

    }

    //noinspection HCLUnknownBlockType
    topology {
      id   = "hot_content"
      size = "8g"
    }

    //noinspection HCLUnknownBlockType
    topology {
      id   = "warm"
      size = "16g"
    }
  }
}

Expected Behavior

What should have happened?

No errors regarding unknown block types

Actual Behavior

What actually happened?

Screen Shot 2021-06-28 at 13 57 42

Steps to Reproduce

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

  1. Add above HCL to a file
  2. note the error
matschaffer commented 3 years ago

I'm also running into a number of unresolved references for this provider.

What's the process to get a new provider recognized by the IntelliJ plugin?

FractalizeR commented 1 year ago

Looks like we have a bunch of "duplicates" here:

https://github.com/VladRassokhin/intellij-hcl/issues/351 https://github.com/VladRassokhin/intellij-hcl/issues/380 https://github.com/VladRassokhin/intellij-hcl/issues/392 https://github.com/VladRassokhin/intellij-hcl/issues/341