terraform-exec icon indicating copy to clipboard operation
terraform-exec copied to clipboard

Support Terraform 0.14.0 and later -chdir Global Option

Open bflad opened this issue 5 years ago • 3 comments

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.

bflad avatar Oct 17 '20 03:10 bflad

Took a swing at this here: https://github.com/hashicorp/terraform-exec/pull/100

bflad avatar Oct 19 '20 16:10 bflad

Please note that this will now be required in upcoming Terraform CLI versions: https://github.com/hashicorp/terraform/pull/27664

bflad avatar Feb 02 '21 18:02 bflad

Is there any update on this issue?

magodo avatar Jun 11 '21 07:06 magodo