You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module: ERROR
cannot delete key %v: does not exist
The problem seems to be that --detach tries to rewrite terraform block in the copied module config by removing backend field and gives an error when it fails to do so. terraform 0.12upgrade command creates versions.tf file with content
terraform {
required_version = ">= 0.12"
}
Which creates a problem with current detach implementation.
Activity
btromanova commentedon Aug 14, 2019
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).
Add detach support which is compatible with hcl2 used for terraform 0…