Comments (5)
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
}
from vscode-language-terraform.
Not sure on complexity of fix but it would soothe my soul to see this fixed.
from vscode-language-terraform.
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:
from vscode-language-terraform.
Also seeing error highlighting for terraform_version_constraint
and terragrunt_version_constraint
.
from vscode-language-terraform.
Fixed in v0.2.5
from vscode-language-terraform.
Related Issues (20)
- Invalid syntax highlighting caused by incorrectly identified escape character
- Incorrect syntax highlighting for labeled include blocks in terragrunt configuration HOT 1
- Failed to request discovery document
- Please consider possibility to install the plugin via "Remote - SSH" plugin (remote development)
- Syntax highlighting support for multiple includes in terragrunt.hcl HOT 3
- Support for syntax highlighting for not just terragrunt.hcl Terragunt files
- Support for Moved Blocks
- Request HOT 3
- backend snippet needs a comma between s3 and swift
- Add Syntax Highlighting for for_each, count, and dynamic HOT 1
- CI/CD automate publishing to Open-VSX.org
- FR - generate links to resource docs pages
- Format on save HOT 1
- Is this still maintained? HOT 1
- Feature Request: formatting HOT 3
- Shows validation in red even when correct HOT 1
- Feature request: Markdown code blocks highlighting HOT 2
- terraform extensions are not working
- Spurious error on aws.<region alias>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-language-terraform.