You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, terrafmt upgrade012 outputs errors if a block has already been updated to Terraform 0.12 syntax. This is because of limitations in terraform 0.12upgrade, as explained in hashicorp/terraform#23512.
Calling terraform validate -json and looking for a non-zero value in the warning_count field will indicate validation warnings, which can be assumed to be (mostly) pre-0.12 syntax.
The text was updated successfully, but these errors were encountered:
gdavison
changed the title
terrafmt upgrade012 could be
terrafmt upgrade012 could skip running if already formatted in 0.12 syntax
Jul 24, 2020
Currently,
terrafmt upgrade012
outputs errors if a block has already been updated to Terraform 0.12 syntax. This is because of limitations interraform 0.12upgrade
, as explained in hashicorp/terraform#23512.Calling
terraform validate -json
and looking for a non-zero value in thewarning_count
field will indicate validation warnings, which can be assumed to be (mostly) pre-0.12 syntax.The text was updated successfully, but these errors were encountered: