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
The following file ends up as an invalid terraform file after tagging:
resource "kubernetes_deployment" "audit_server" { metadata { name = "terraform-example" } spec { replicas = var.pre_migration_scale_down_mode_enabled ? 0 : (var.minimal_setup_enabled ? local.minimal_setup_replicas : 1) strategy { type = local.kubernetes_deployment_strategy_rolling_update } } } resource "google_pubsub_topic" "audit_topic" { }
The output file will contain the following lines:
spec { replicas = var.pre_migration_scale_down_mode_enabled ? 0 : (var.minimal_setup_enabled ? local.minimal_setup_replicas : 1 ) strategy { type = local.kubernetes_deployment_strategy_rolling_update } }
Trying to run terraform plan on that file will result in the error:
terraform plan
) strategy { An argument definition must end with a newline.
The resource wasn't tagged, and yet it was still altered, and it became invalid because terratag dropped the ) to the next line
terratag
)
The text was updated successfully, but these errors were encountered:
This seems to be caused by an issue with hclwrite.ParseConfig: hashicorp/hcl#402
hclwrite.ParseConfig
Sorry, something went wrong.
Bugfix: env0#56, by forking hcl, submitted PR
cd35ac3
Bugfix: #56, by forking hcl, submitted PR (#63)
e45c8e2
* Bugfix: #56, by forking hcl, submitted PR * added test Co-authored-by: Roni Frantchi <roni-frantchi@users.noreply.github.com>
shlomimatichin
Successfully merging a pull request may close this issue.
The following file ends up as an invalid terraform file after tagging:
The output file will contain the following lines:
Trying to run
terraform plan
on that file will result in the error:The resource wasn't tagged, and yet it was still altered, and it became invalid because
terratag
dropped the)
to the next lineThe text was updated successfully, but these errors were encountered: