Closed adamstirk-ct closed 1 year ago
@JorgeReus Can you investigate this?
On it
Found the issue, I ignored providers without tags, which introduced this error, this is fixed in https://github.com/terraform-linters/tflint-ruleset-aws/pull/508, sorry!
@adamstirk-ct As a temporal workaround, you could add an empty default tags block, until the PR gets merged:
provider "aws" {
region = "us-west-1"
alias = "west"
default_tags {
tags = {}
}
}
With v0.24.0 of the ruleset I'm now getting the error below, even though the provider exists.
Failed to check ruleset; failed to check "aws_resource_missing_tags" rule: The aws provider with alias "us-east-1" doesn't exist.
Below is a simple example that replicates this issue
File: .tflint.hcl
File: main.tf
File: outputs.tf
File: variables.tf