VladRassokhin / intellij-hcl

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

azurerm_kubernetes_cluster #295

Closed Christoph-Raab closed 4 years ago

Christoph-Raab 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

IntelliJ IDEA 2020.1 (Community Edition) Build #IC-201.6668.121, built on April 8, 2020 Runtime version: 11.0.6+8-b765.25 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0

Terraform Configuration Files

resource "azurerm_kubernetes_cluster" "aks" {
  name                = "${var.prefix}-${var.stage}-cluster"
  location            = azurerm_resource_group.rg.location
  resource_group_name = azurerm_resource_group.rg.name
  dns_prefix          = "${var.prefix}${var.stage}"

  # Default node pool with max pod size
  default_node_pool {
    name           = "defaultpool"
    node_count     = var.node_count
    vm_size        = var.vm_size
    max_pods       = "50"
    vnet_subnet_id = azurerm_subnet.subnet.id

    tags = {
      Environment  = var.stage
    } 
  }

  service_principal {
    client_id     = azuread_application.aks_sp.application_id
    client_secret = random_password.aks_sp_pwd.result
  }

  tags = {
      Environment  = var.stage
  }
}

Expected Behavior

Everything is ok

Actual Behavior

Warning: block agentpool is missing, block default_node_pool is unknown

Steps to Reproduce

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

  1. Place cursor somewhere
  2. Invoke completion.