Releases: terraform-linters/tflint
Releases · terraform-linters/tflint
v0.8.3
0.8.3 (2019-06-09)
GPG key ID: 8CE69160EB3F2FE9
Enhancements
- #318: Added 3 checks for AWS Launch Configuration. (@krzyzakp)
aws_launch_configuration_invalid_iam_profile
aws_launch_configuration_invalid_image_id
aws_launch_configuration_invalid_type
- #321: Add
--var
options. - #322: Add new rule: aws_s3_bucket_invalid_acl. (@ineffyble)
- #324: TFLint is now compatible with Terraform v0.12.1.
BugFixes
- #320: Avoid InvalidAMIID errors.
Others
v0.8.2
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.
- The
- #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
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 checksdynamic
blocks. - #297: Fix panic when checking whether an expression is null.
Others
- #292: Migrating to Go Modules.
v0.8.0
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}
.
- Previously
- 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 likemodule_id/instance.tf
.
- Up to now it was output like
- 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
(notresource
) block because it is valid as HCL syntax in previous versions.
- For example, it didn't raise an error when using
- Remove
--debug
option.- Please use
TFLINT_LOG
environment variables instead.
- Please use
- 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
andTF_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
- 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 onaws_route_specified_multiple_targets