apparentlymart / terraform-clean-syntax

A simple tool for Terraform language syntax cleanup, extending terraform fmt
Mozilla Public License 2.0
160 stars 24 forks source link

also clean up depends_on blocks #1

Open kevinburke1 opened 4 years ago

kevinburke1 commented 4 years ago

This tool caught every warning in my project, except for this one:


Warning: Quoted references are deprecated

  on ../modules/bastion/bastion.tf line 71, in resource "aws_instance" "default":
  71:   depends_on = ["aws_security_group.default"]
apparentlymart commented 4 years ago

Thanks for reporting this, @kevinburkemeter!

I expected there would be fewer examples of this than the other two, so I skipped implementing a fix for this one. I'd be happy to review a PR if someone has time or inclination to add it, but I won't have time to work on this myself.