github terraform-linters/tflint v0.23.0

latest releases: v0.51.0, v0.50.3, v0.50.2...
3 years ago

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-region CLI flags. Please configure these via .tflint.hcl file.
    • Remove global deep_check and aws_credentials configs from .tflint.hcl. Please configure these in plugin blocks.
  • #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

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)

Don't miss a new tflint release

NewReleases is sending notifications on new releases.