Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform_map_duplicate_keys for .tfvars files #201

Closed
ericrichtert opened this issue Aug 17, 2024 · 1 comment
Closed

terraform_map_duplicate_keys for .tfvars files #201

ericrichtert opened this issue Aug 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ericrichtert
Copy link

I's like to do some detection on duplicate keys in a map. terraform_map_duplicate_keys should do the trick, but our variables are populated in a .tfvars file.

With or without the --var-file=X.tfvars option, there is no detection of the duplicate keys. Is there a way to check the content of the .tfvars file?

Versions:
TFLint version 0.52.0

  • ruleset.terraform (0.9.0)

BTW: 0.9.1 was the same behaviour

@wata727
Copy link
Member

wata727 commented Aug 17, 2024

Unfortunately, variable definitions files are not currently supported in this rule.
This feature request is blocked by terraform-linters/tflint#1949.

@wata727 wata727 added the enhancement New feature or request label Aug 17, 2024
@terraform-linters terraform-linters locked and limited conversation to collaborators Aug 20, 2024
@bendrucker bendrucker converted this issue into discussion #204 Aug 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants