Giter VIP home page Giter VIP logo

Comments (5)

trallnag avatar trallnag commented on May 30, 2024

Interestingly this is only highlighted incorrectly if a function is used like merge. If I replace it with a map it works fine:

inputs = {
  account_id = local.environment_vars.account_id
  account_name = local.environment_vars.account_id
  region = local.environment_vars.account_id
}

image

from vscode-language-terraform.

phantomkingx avatar phantomkingx commented on May 30, 2024

Not sure on complexity of fix but it would soothe my soul to see this fixed.

from vscode-language-terraform.

bcbrockway avatar bcbrockway commented on May 30, 2024

We see a similar issue with different blocks:

include {
  path = find_in_parent_folders()
}

terraform {
  # source = "git::ssh://[email protected]/mintel/satoshi/infrastructure/aws-infrastructure-modules//modules/services/eks-cluster/control-plane?ref=master"
  source = "../../../../../../../aws-infrastructure-modules//modules/services/eks-cluster/control-plane"
}

locals {
  account_vars     = read_terragrunt_config(find_in_parent_folders("account.hcl"))
  cluster_vars     = read_terragrunt_config(find_in_parent_folders("cluster.hcl"))
  common_vars      = read_terragrunt_config(find_in_parent_folders("common.hcl"))
  environment_vars = read_terragrunt_config(find_in_parent_folders("environment.hcl"))

  # Common Variables - These should stay the same for all clusters
  account_name          = local.account_vars.locals.account_name
  account_id            = local.common_vars.locals.account_ids[local.account_name]
  aws_auth_merger_image = local.common_vars.locals.aws_auth_merger_image
  cluster_type          = local.cluster_vars.locals.type
  environment_name      = local.environment_vars.locals.environment_name
  infra_tags            = local.common_vars.locals.tagsets.infra
}

dependencies {
  paths = ["../route53"]
}

dependency "vpc" {
  config_path = "../../../networking/vpc"
  mock_outputs = {
    vpc_id                 = "mock-vpc-id"
    vpc_cidr_block         = "1.2.3.4/20"
    private_app_subnet_ids = ["mock-subnet-id-priv-app"]
  }
  mock_outputs_allowed_terraform_commands = ["init", "validate"]
}

inputs = {

  #
  # Default Config: Same for all clusters (values pulled from elsewhere in this repo)
  #

  aws_account_name           = local.account_name
  aws_auth_merger_image      = local.aws_auth_merger_image
  custom_tags_eks_cluster    = local.infra_tags
  custom_tags_security_group = local.infra_tags
  eks_cluster_name           = local.environment_name
  eks_cluster_type           = local.cluster_type

  # We deploy EKS into the App VPC, inside the private app tier.
  vpc_id                       = dependency.vpc.outputs.vpc_id
  vpc_control_plane_subnet_ids = dependency.vpc.outputs.private_app_subnet_ids
  vpc_worker_subnet_ids        = dependency.vpc.outputs.private_app_subnet_ids

  #
  # Custom Config
  #
  kubernetes_version = "1.19"

  iam_role_to_rbac_group_mappings = {
    "arn:aws:iam::${local.account_id}:role/applied-innovation-ops" = ["applied-innovation-ops"]
    "arn:aws:iam::${local.account_id}:role/cpg-ops"                = ["cpg-ops"]
    "arn:aws:iam::${local.account_id}:role/dev-tools-ops"          = ["dev-tools-ops"]
    "arn:aws:iam::${local.account_id}:role/portal-ops"             = ["portal-ops"]
  }

  num_nat_gateways = 1

  # Use the latest patch release that matches the minor k8s release version you're using (check
  # https://github.com/kubernetes/autoscaler/releases)
  cluster_autoscaler_version = "v1.19.1"
  
  enable_idp = false

}

looks like:

image

from vscode-language-terraform.

stephenteodori avatar stephenteodori commented on May 30, 2024

Also seeing error highlighting for terraform_version_constraint and terragrunt_version_constraint.

image

from vscode-language-terraform.

4ops avatar 4ops commented on May 30, 2024

Fixed in v0.2.5

from vscode-language-terraform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.