Terraform v0.7.11
None.
resource "aws_security_group" "test" {
/*ingress {
protocol = "tcp"
from_port = 80
to_port = 80
cidr_blocks = ["127.0.0.1/32"]
}*/
}
https://gist.github.com/michaelkaye/6b9ee87e9a610e69f6061572ab034344
One run of terraform fmt should format the file, repeated runs on a formatted file should not keep changing it.
Each run of terraform fmt indents the contents of the comment block by an additional 2 spaces.
terraform fmt (multiple times on the same file, such as an a automated linting script or commit checker should do)https://github.com/hashicorp/terraform/issues/9859 - possibly a similar issue with multi-line strings
This is fixed in 0.8, try the beta!
This problem seems to still exist for other kinds of multiline comments on Terraform 0.8.8:

In this example, I have an Atom plugin to run terraform fmt on every save.
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
This problem seems to still exist for other kinds of multiline comments on Terraform 0.8.8:
In this example, I have an Atom plugin to run
terraform fmton every save.