Support Terraform 0.14.0 and later -chdir Global Option
Reference: https://github.com/hashicorp/terraform/blob/v0.14/CHANGELOG.md Reference: https://github.com/hashicorp/terraform/pull/26087 Reference: https://github.com/hashicorp/terraform/issues/25558 Reference: https://github.com/hashicorp/terraform/issues/18030
Terraform commands have historical incompatibilities when executed outside the configuration directory, for example automatic variables files are not properly read. Terraform 0.14.0 (all pre-release versions) introduces a new -chdir global option, e.g. terraform -chdir /path/to/config <command> syntax. Later Terraform versions will deprecate the older terraform <command> /path/to/config as an argument.
Took a swing at this here: https://github.com/hashicorp/terraform-exec/pull/100
Please note that this will now be required in upcoming Terraform CLI versions: https://github.com/hashicorp/terraform/pull/27664
Is there any update on this issue?