terraform-linters / tflint-ruleset-aws

TFLint ruleset for terraform-provider-aws
Mozilla Public License 2.0
336 stars 72 forks source link

Incompatible API version with plugin "aws". #325

Closed jdobyns closed 2 years ago

jdobyns commented 2 years ago

Getting this when trying to init.

Installing aws plugin...
Installed aws (source: github.com/terraform-linters/tflint-ruleset-aws, version: 0.13.1)
root@code:~/repos/trd/ops/terraform/environments/trd/eks# tflint 
Failed to initialize plugins. An error occurred:

Error: Incompatible API version with plugin "aws". Plugin version: 10, TFLint versions: [9]
PatMyron commented 2 years ago

Experienced this as well since brew installed tflint 0.34.1 instead of the latest tflint 0.35.0

brew update && brew install tflint or the Linux install script should pick up tflint 0.35.0 now (which seems required for the newer ruleset plugin versions)

jdobyns commented 2 years ago

Solved. Thank You @PatMyron

$ tflint -v
TFLint version 0.35.0
+ ruleset.aws (0.13.1)
poeteater commented 2 years ago

So this isn't compatible with 0.35.0?

poeteater commented 2 years ago
% git commit -m "bar"
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /Users/me/.cache/pre-commit/patch1649438580-59146.
Terraform fmt............................................................Passed
Terraform docs...........................................................Passed
Terraform validate with tflint...........................................Failed
- hook id: terraform_tflint
- exit code: 1

Failed to initialize plugins; Incompatible API version with plugin "aws". Plugin version: 9, TFLint versions: [10]

[INFO] Restored changes from /Users/me/.cache/pre-commit/patch1649438580-59146.
% tflint -v
TFLint version 0.35.0
+ ruleset.aws (0.13.2)