We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.tfbackend
% terraform version Terraform v1.10.4
It should be possible to run terraform fmt on .tfbackend files, just like it is possible to do so in .tfvars files.
terraform fmt
.tfvars
As of now:
$ terraform fmt a.tfbackend │ Error: Only .tf, .tfvars, and .tftest.hcl files can be processed with terraform fmt
Wherein:
$ cat a.tfbackend a = "foo" b = "bar"
.tfbackend is very similar to .tfvars as per the official docs.
The example docs also show the files nicely formatted (the equal signs are vertically aligned), suggesting that it is the intent.
terraform fmt a.tfbackend does not work.
terraform fmt a.tfbackend
Renaming it to a.tfvars and then running terraform fmt a.tfvars works.
a.tfvars
terraform fmt a.tfvars
Make terraform fmt accept *.tfbackend files, similarly to .tfvars.
*.tfbackend
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Terraform Version
Use Cases
It should be possible to run
terraform fmt
on.tfbackend
files, just like it is possible to do so in.tfvars
files.As of now:
Wherein:
.tfbackend
is very similar to.tfvars
as per the official docs.The example docs also show the files nicely formatted (the equal signs are vertically aligned), suggesting that it is the intent.
Attempted Solutions
terraform fmt a.tfbackend
does not work.Renaming it to
a.tfvars
and then runningterraform fmt a.tfvars
works.Proposal
Make
terraform fmt
accept*.tfbackend
files, similarly to.tfvars
.References
No response
The text was updated successfully, but these errors were encountered: