Closed btromanova closed 5 years ago
Actually, this was just the tip of the iceberg.
The implementation of the detach flag requires parsing the terraform configuration and removing remote backend configuration part.
Terraform 0.12 switched from https://github.com/hashicorp/hcl to https://github.com/hashicorp/hcl2, which requires to reimplement config parsing with the new library. So far I haven't seen clear documentation or examples of how to do what we were doing with the previous version of HCL (finding and removing the node with the specific path).
Running
astro plan --detach
after upgrading terraform configuration to 0.12 by following terraform guide from https://www.terraform.io/upgrade-guides/0-12.html gives the following errorThe problem seems to be that
--detach
tries to rewriteterraform
block in the copied module config by removingbackend
field and gives an error when it fails to do so.terraform 0.12upgrade
command createsversions.tf
file with contentWhich creates a problem with current
detach
implementation.