config-lint
config-lint copied to clipboard
Command line tool to validate configuration files
*.tfvars seems to not be supported by both default and custom rules in config-lint. Below is an error that we get when we run config-lint against Terraform scripts with tfvars...
```yml --- version: 1 description: Lint terraform config type: Terraform12 files: - "env/aws/dev/main.tf" rules: - id: root_resource_naming_convention message: "Root resource name must end with the region name" category: resource severity:...
if I have a resource such as ```hcl resource aws_s3_bucket this { tags = local.tags } ``` I see that config-lint injects local.tags into tags there when reading the files...
I'm trying to run config-lint on my terraform configuration files and I came across a possible problem. If i run `terraform init` before running config-lint, a ocult directory `.terraform` will...
A very common pattern for terraform resources is to have common tags defined in locals, and then use terraforms merge function to merge in extra resource-specific tags, per resource i.e...
According to https://stelligent.github.io/config-lint/#/terraform, rules can be applied to outputs and variables. However, I have not been able to make it work (as far as I can see there is no...
For the tf12 parser the block syntax works as expected: ``` parameter { name = "tls" value = "enabled" } parameter { name = "audit_logs" value = "enabled" } ```...
Hello, would it be possible to use a resource in a condition? For example: Write a rule that validates resource `aws_s3_bucket_public_access_block.block_public_acls = true` only if's `aws_s3_bucket.acl = private` An example...
If a heredoc for a policy or alike has string interpolation, it will resolve to be null. Removing the variable will behave as expected. When a policy has a string...
After pulling the first time the repo, I got an error on the test : - TestDaysOldFor90DaysAgo It was due to summertime.