Skip to content

Releases: terraform-linters/tflint

v0.8.3

09 Jun 10:06
Compare
Choose a tag to compare

0.8.3 (2019-06-09)

GPG key ID: 8CE69160EB3F2FE9

Enhancements

BugFixes

  • #320: Avoid InvalidAMIID errors.

Others

  • #319: Added pre-commit hooks. (@krzyzakp)
  • #323: Bump github.com/aws/aws-sdk-go from 1.19.41 to 1.19.46

v0.8.2

02 Jun 15:22
Compare
Choose a tag to compare

0.8.2 (2019-06-03)

GPG key ID: 8CE69160EB3F2FE9

Enhancements

  • #308: Make aws_instance_invalid_ami rule faster.
    • The --fast option to disable this rule will be removed in v0.9.
  • #309: Accept a directory as an argument.

Others

  • #298: Revise docker image.
  • #300: Bump github.com/mattn/go-colorable from 0.1.1 to 0.1.2.
  • #301: Bump github.com/mitchellh/go-homedir from 1.0.0 to 1.1.0.
  • #302: Bump github.com/aws/aws-sdk-go from 1.19.18 to 1.19.41.
  • #303: Bump github.com/k0kubun/pp from 2.3.0+incompatible to 2.4.0+incompatible.
  • #304: Bump github.com/hashicorp/go-version from 1.1.0 to 1.2.0.
  • #305: Bump github.com/golang/mock from 1.2.0 to 1.3.1.
  • #306: Bump github.com/google/go-cmp from 0.2.0 to 0.3.0.
  • #307: Remove mock package.

v0.8.1

29 May 16:45
Compare
Choose a tag to compare

0.8.1 (2019-05-30)

GPG key ID: 8CE69160EB3F2FE9

Enhancements

  • #277: Ignore annotation support.
    • tflint-ignore: rule_name annotation is now availble. See README.md.

BugFixes

  • #293: Fix false negatives when aws_instance_default_standard_volume rule checks dynamic blocks.
  • #297: Fix panic when checking whether an expression is null.

Others

  • #292: Migrating to Go Modules.

v0.8.0

25 May 14:52
Compare
Choose a tag to compare

0.8.0 (2019-05-25)

GPG key ID: 8CE69160EB3F2FE9

This release includes major changes due to being dependent on Terraform v0.12 internal API. While we try to keep backward compatibility as much as possible, it does include some breaking changes.

We strongly recommend upgrading to Terraform v0.12 before trying TFLint v0.8. terraform 0.12upgrade is helpful to upgrade your configuration files.

Breaking Changes

  • Always return an error when failed to evaluate an expression.
    • Until now, except for module arguments, even if an error occurred, it was ignored.
    • Expressions including unsupported named values (such as ${module.foo}) are not evaluated, so no error occurs.
  • Drop support for ${terraform.env}.
    • Previously ${terraform.env} was a valid expression that returned the same as ${terraform.workspace}.
    • This is because Terraform v0.12 doesn't support ${terraform.env}.
  • The file name of a module includes module ID instead of the source attribute.
    • Up to now it was output like github.com/wata727/example-module/instance.tf, but it will be changed like module_id/instance.tf.
  • Always parse all configuration files under the current directory.
    • When passing a file name as an argument, TFLint only parsed that file so far, but it now parses all configuration files under the current directory.
    • Also, file arguments are only used to filter the issues obtained. Therefore, you cannot pass files other than under the current directory.
    • As a known issue, If file arguments are passed, module's issues are not reported. This will be improved by changing handling of module's issues in the future.
    • These behaviors have been changed as it depends on Terraform's configload package.
    • In addition, modules are always loaded regardless of ignore_module.
  • Raise an error when using invalid syntax as a Terraform configuration.
    • For example, it didn't raise an error when using resources(not resource) block because it is valid as HCL syntax in previous versions.
  • Remove --debug option.
    • Please use TFLINT_LOG environment variables instead.
  • Raise an error when a file passed by --config does not exist.
    • Previously the error was ignored and the default config was referenced.
  • Remove duplicate resource rules.
    • This is due to technical difficulty and user experience.

Enhancements

  • HCL2 support
  • Built-in Functions support
    • Until now, if an expression includes function calls, it was ignored.
  • TF_DATA_DIR and TF_WORKSPACE environment variables are now available.
    • Until now, these variables are ignored.
  • It is now possible to handle values doesn't have a default without raising errors.
    • In the past, an error occurred when there was a reference to a variable that had no default value in an attribute of a module. See #205
  • Terraform v0.11 module support
    • Until now, it is failed to properly load a part of Terraform v0.11 module. See also #167
  • Support for automatic loading *.auto.tfvars files.
    • Previously it was not loaded automatically.

BugFixes

  • Improve expression checks
    • Since it used to be checked by a regular expression, there were many bugs, but it was greatly improved by using the terraform/lang package. See #204 #160
  • Stop overwriting the config under the current directory by the config under the homedir.
    • Fixed the problem that overwrites the config under the current directory by homedir config.
  • Improve to check for aws_db_instance_readable_password.
    • Previously, false positive occurred when setting values files or environment variables, but this problem has been fixed.
  • Make transit_gateway_id as a valid target on aws_route_specified_multiple_targets

Project Changes

  • Change license: MIT -> MPL 2.0
  • Update documentations

v0.7.6

17 May 13:25
Compare
Choose a tag to compare

0.7.6 (2019-05-17)

BugFixes

v0.7.5

03 Apr 16:32
Compare
Choose a tag to compare

0.7.5 (2019-04-03)

Enhancements

  • Update RDS DB size list (#269)
  • Add M5 and R5 families to ElastiCache (#270)

Others

  • Add go report card (#261)
  • automate the installation of tflint on linux (#267)

v0.7.4

09 Feb 13:43
Compare
Choose a tag to compare

0.7.4 (2019-02-09)

Enhancements

  • Add support for db.m5 series db types (#258)

v0.7.3

28 Dec 06:48
Compare
Choose a tag to compare

0.7.3 (2018-12-28)

Enhancements

  • Update ec2-instances-info dependency (#257)

Others

  • Add "features" word to docs for people explicitly looking (#237)

v0.7.2

26 Aug 12:27
Compare
Choose a tag to compare

0.7.2 (2018-08-26)

Enhancements

  • Update valid instance list (#226)

v0.7.1

19 Jul 13:31
Compare
Choose a tag to compare

0.7.1 (2018-07-19)

Bugfix

  • Add missing db instances as valid types (#214)
  • Update valid instance types (#215)

Others

  • Migrate to dep from Glide (#208)
  • Add rule section in README (#213)