terraform-examples icon indicating copy to clipboard operation
terraform-examples copied to clipboard

Fix tflint errors

Open melihc1 opened this issue 2 years ago • 2 comments

Check for latest runs and fix deprecation related errors

Example error: https://github.com/ContainerSolutions/terraform-examples/runs/7654637304?check_suite_focus=true#step:4:1494

Warning: Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)

  on main.tf line 23:
  23:     "${file("values.yaml")}"

Reference: https://github.com/terraform-linters/tflint/blob/v0.39.1/docs/rules/terraform_deprecated_interpolation.md

melihc1 avatar Aug 03 '22 14:08 melihc1

Latest version of tflint (v0.40) has many more errors:

https://github.com/ContainerSolutions/terraform-examples/actions/runs/3091438826/jobs/5001511068

Logs uploaded as txt: logs.txt

melihc1 avatar Sep 20 '22 16:09 melihc1

Hey @ttarczynski and @melihc1, I'd be happy to pick up some of the tflint errors and fix them. Do you have a preferred way of tackling them? Like fix errors of the same kind in one PR or rather go based on in which example they appear or even a different way?

kolja-lucht avatar Oct 03 '22 16:10 kolja-lucht