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
Terraform v1.9.5 on darwin_arm64
resource "aws_instance" "test" { user_data = <<EOF #!/bin/bash ${templatefile("${path.module}/userdata.sh", { var = local.var })} EOF root_block_device { volume_size = var.disk_size delete_on_termination = true } }
https://gist.github.com/VladRassokhin/baa20d094a8de5b8a09610e1bb930cf2
Indentation of root_block_device kept as is.
root_block_device
Indentation changes to:
terraform fmt -write=true test.tf
Removing templating from the heredoc or removing {} from templatefile helps.
{}
templatefile
No response
The text was updated successfully, but these errors were encountered:
Thanks for this report!
Sorry, something went wrong.
No branches or pull requests
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/VladRassokhin/baa20d094a8de5b8a09610e1bb930cf2
Expected Behavior
Indentation of
root_block_device
kept as is.Actual Behavior
Indentation changes to:
Steps to Reproduce
terraform fmt -write=true test.tf
Additional Context
Removing templating from the heredoc or removing
{}
fromtemplatefile
helps.References
No response
The text was updated successfully, but these errors were encountered: