Releases: terraform-linters/tflint
v0.24.0
0.24.0 (2021-01-31)
GPG key ID: 8CE69160EB3F2FE9
This release fixes some bugs about the plugin system. For this update, the plugin must be built with tflint-plugin-sdk v0.8.0 to work with TFLint v0.24.0. For details, please see the CHANGELOG of tflint-plugin-sdk.
Breaking Changes
- #1052: Bump tflint-plugin-sdk and bundled plugins (@wata727)
- This change breaks plugin API backward compatibility. In order for plugins to work against v0.24.0, you need to build with tflint-plugin-sdk v0.8.0.
Changes
- #1043: Call ApplyConfig before ValidateRules (@richardTowers)
BugFixes
- #1040: Fix panic on empty backend in Config() (@syndicut)
- #1041: Fix gob encoder error on unknown value (@syndicut)
Chores
- #1034: build(deps): Bump github.com/hashicorp/hcl/v2 from 2.8.1 to 2.8.2
- #1035 #1044: build(deps): Bump github.com/hashicorp/terraform from 0.14.3 to 0.14.5
- #1046: go: cache builds (@bendrucker)
- #1047: add module/build caching to e2e + gen (@bendrucker)
v0.23.1
v0.23.0
0.23.0 (2021-01-03)
This release changes the AWS rules implementation into the AWS ruleset plugin. As a result, there are breaking changes to the config for deep checking. If you are using this feature, please declare the plugin settings in .tflint.hcl as follows. See the tflint-ruleset-aws plugin configurations for details.
plugin "aws" {
enabled = true
deep_check = true
// Write credentials here...
}For backward compatibility, The AWS ruleset plugin is bundled with the binary. So you can still use AWS rules without installing the plugin separetely. The plugin is automatically enabled if there are AWS resources in your Terraform configuration, but it can also be turned on explicitly. See #1009 for details.
GPG key ID: 8CE69160EB3F2FE9
Breaking Changes
- #1009: Switch AWS rules implementation to the tflint-ruleset-aws plugin (@wata727)
- #1023: Remove global deep checking options (@wata727)
- Remove
--deep,--aws-access-key,--aws-secret-key,--aws-profile,--aws-creds-file, and--aws-regionCLI flags. Please configure these via.tflint.hclfile. - Remove global
deep_checkandaws_credentialsconfigs from.tflint.hcl. Please configure these inpluginblocks.
- Remove
- #1026: Bump tflint-plugin-sdk and bundled plugins (@wata727)
- This change breaks plugin API backward compatibility. In order for plugins to work against v0.23.0, you need to build with tflint-plugin-sdk v0.7.0.
Enhancements
- #986: plugin: Extend runner API for accessing the root provider (@wata727)
- #1003: plugin: Add support for fetching rule config (@wata727)
- #1007: rule: terraform_unused_required_providers (@bendrucker)
- #1008: plugin: Add
IsNullExprAPI (@wata727) - #1017: plugin: Add
FileAPI (@wata727)
BugFixes
- #1019: tflint: Add workaround to get the range of
configs.mergeBody(@wata727) - #1020: tflint: Skip walking expressions of merged bodies (@wata727)
Chores
- #1010: build(deps): Bump github.com/hashicorp/hcl/v2 from 2.8.0 to 2.8.1
- #1011: build(deps): Bump github.com/zclconf/go-cty from 1.7.0 to 1.7.1
- #1013: build(deps): Bump github.com/hashicorp/terraform from 0.14.2 to 0.14.3
- #1015: docs: add homebrew badge (@chenrui333)
- #1018: Tweaks E2E testing (@wata727)
- #1021: deps: match afero version to terraform (@bendrucker)
- #1024: Cleanup AWS relevant implementations (@wata727)
- #1025: Revise documentation (@wata727)
v0.22.0
0.22.0 (2020-12-09)
This release updates to Terraform 0.14! This adds support for parsing configuration that uses features introduced in Terraform 0.14. See Terraform's changelog for further details.
GPG key ID: 8CE69160EB3F2FE9
Enhancements
- #992 #1001: bump terraform from 0.13.5 to 0.14.2 (@bendrucker)
- #989: aws_route_not_specified_target: Add vpc_endpoint_id route target (@Tensho)
BugFixes
- #998: terraform_required_providers: emit error when only source is specified (@bendrucker)
- #999: runner: clean Terraform source path for comparison
Chores
v0.21.0
0.21.0 (2020-11-23)
This release adds support for JSON configuration syntax in plugins. For this update, the plugin must be built with tflint-plugin-sdk v0.6.0 to work with TFLint v0.21.0. For details, please see the CHANGELOG of tflint-plugin-sdk.
GPG key ID: 8CE69160EB3F2FE9
Breaking Changes
- #982: Bump tflint-plugin-sdk to v0.6.0 (@wata727)
- This change breaks plugin API backward compatibility. In order for plugins to work against v0.21.0, you need to build with tflint-plugin-sdk v0.6.0.
Enhancements
- #958: plugin: Add support for JSON configuration syntax (@wata727)
- #959: rules: Add support m6g/r6g DB instance types (@wata727)
- #967: plugin: Allow to declare custom attributes in config files (@wata727)
- #976 #981: Bump terraform-provider-aws to v3.16.0 from v3.11.0 (@bendrucker @wata727)
BugFixes
- #963: langserver: escape language server paths in Windows (@filiptepper)
Chores
- #955 #979: Bump github.com/hashicorp/hcl/v2 from 2.6.0 to 2.7.1
- #956 #962 #965 #969 #973 #974 #980: Bump github.com/aws/aws-sdk-go from 1.35.7 to 1.35.33
- #960: Bump github.com/zclconf/go-cty from 1.6.1 to 1.7.0
- #961: Bump github.com/hashicorp/terraform from 0.13.4 to 0.13.5
- #964: Bump github.com/fatih/color from 1.9.0 to 1.10.0
- #966 #970 #978: Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.0.4 to 2.3.0
- #968: Bump github.com/hashicorp/go-plugin from 1.3.0 to 1.4.0
- #971: Bump actions/cache from v2.1.2 to v2.1.3
- #972: Bump github.com/google/go-cmp from 0.5.2 to 0.5.3
- #977: chore: Allow "latest" as TFLINT_VERSION in the installation script (@wata727)
v0.20.3
0.20.3 (2020-10-18)
GPG key ID: 8CE69160EB3F2FE9
Enhancements
- #931 #952: Bump terraform-provider-aws to v3.11.0 from v3.6.0 (@bendrucker @wata727)
- #954: support for m6g and r6g instance types (@jpatallah)
BugFixes
Chores
- #932 #940 #945: Bump github.com/aws/aws-sdk-go from 1.34.27 to 1.35.7
- #938: Bump github.com/mattn/go-colorable from 0.1.7 to 0.1.8
- #939: Bump github.com/hashicorp/terraform from 0.13.3 to 0.13.4
- #941: Bump actions/setup-go from v2.1.2 to v2.1.3
- #944: Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.0.3 to 2.0.4
- #946: Bump github.com/hashicorp/aws-sdk-go-base from 0.6.0 to 0.7.0
- #947: Bump github.com/spf13/afero from 1.4.0 to 1.4.1
- #948: Bump actions/cache from v2.1.1 to v2.1.2
v0.20.2
0.20.2 (2020-09-22)
GPG key ID: 8CE69160EB3F2FE9
Enhancements
- #910 #924: Adding a rule to check aws_s3_bucket names match a common regex/prefix (@sam-burrell)
BugFixes
- #920: terraform_required_providers: ignore terraform provider (@bendrucker)
Chores
v0.20.1
0.20.1 (2020-09-13)
GPG key ID: 8CE69160EB3F2FE9
Chores
0.20.0 (2020-09-13)
This release introduces a new CLI flag --only. This allows you to run the analysis with only certain rules enabled.
Also, this release is built with Go v1.15. As a result, darwin/386 build will no longer available from the release. Due to a release process issue, this release does not include pre-built binaries, so please check v0.20.1.
Breaking Changes
- #913: Bump tflint-plugin-sdk to v0.5.0 (@wata727)
- This change breaks plugin API backward compatibility. In order for plugins to work against v0.20.0, you need to build with tflint-plugin-sdk v0.5.0.
Enhancements
- #875: Capability to only run explicitly-provided rules (@markliederbach)
- #889: required_providers: handle implicit providers (@bendrucker)
- #901 #912: Bump terraform-provider-aws to v3.6.0 from v3.2.0 (@bendrucker @wata727)
- #904: plugin: Add
Providerfield toterraform.Resource(@wata727) - #911: plugin: Add
Config()method to the plugin server (@wata727)
Chores
- #871: chore(deps): bump go to v1.15 (@chenrui333 @bendrucker)
- #887 #897 #899 #905: Bump github.com/aws/aws-sdk-go from 1.34.5 to 1.34.18
- #891 #902: chore(deps): terraform 0.13.2 (@chenrui333)
- #892: update dependabot to include github action dep support (@chenrui333)
- #893: Bump actions/cache from v1 to v2.1.1
- #894: Bump actions/setup-go from v1 to v2.1.2
- #895: Bump github.com/google/go-cmp from 0.5.1 to 0.5.2
- #900 #906: Bump github.com/zclconf/go-cty from 1.5.1 to 1.6.1
- #903: Updated comments to reflect true intent of three methods (@ritesh-modi)
- #907: Bump github.com/spf13/afero from 1.3.4 to 1.3.5
- #908: Remove replace directive (@jpreese)
v0.19.1
v0.19.0
0.19.0 (2020-08-17)
TFLint v0.19 relies on and is compatible with Terraform v0.13! 🎉
This version is also compatible with most Terraform v0.12 configurations without an immediate update to Terraform v0.13. Custom variable validation was officially added in v0.13. Any modules that enabled this featue during the experiment phase must remove the experiment setting to be compatible with Terraform v0.13. Consult the Terraform 0.13.0 changelog for a full list of breaking changes. We recommend all users update when possible.
GPG key ID: 8CE69160EB3F2FE9
Breaking Changes
- #874: Bump tflint-plugin-sdk to v0.4.0 (@wata727)
- This change breaks plugin API backward compatibility. In order for plugins to work against v0.19.0, you need to build with tflint-plugin-sdk v0.4.0.
Enhancements
- #804: Terraform v0.13 (@bendrucker)
- #843: formatter: add support for --format junit (@bendrucker)
- #848: plugin: Expose
Server.ModuleCallsfor SDK (@pd) - #849: deprecated_interpolations: evaluate all block types/expressions (@bendrucker)
- #850: terraform_required_providers: warn on provider.version (@bendrucker)
- #873: Bump terraform-provider-aws to v3.2.0 from v2.70.0 (@wata727)
BugFixes
- #859: standard_module_structure: fix false positives when passing a directory (@bendrucker)
Chores
- #854 #864 #865 #876: Bump github.com/aws/aws-sdk-go from 1.33.7 to 1.34.5
- #855: Bump github.com/google/go-cmp from 0.5.0 to 0.5.1
- #856 #861 #866: Bump github.com/spf13/afero from 1.3.1 to 1.3.4
- #862: Bump github.com/golang/mock from 1.4.3 to 1.4.4
- #870: test installation on hashicorp/terraform docker image (@bendrucker)