Skip to content
New issue

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

Support Terraform 0.14.0 and later -chdir Global Option #99

Open
bflad opened this issue Oct 17, 2020 · 3 comments · May be fixed by #100
Open

Support Terraform 0.14.0 and later -chdir Global Option #99

bflad opened this issue Oct 17, 2020 · 3 comments · May be fixed by #100
Labels
enhancement New feature or request

Comments

@bflad
Copy link
Member

bflad commented Oct 17, 2020

Reference: https://github.com/hashicorp/terraform/blob/v0.14/CHANGELOG.md
Reference: hashicorp/terraform#26087
Reference: hashicorp/terraform#25558
Reference: hashicorp/terraform#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 added a commit to bflad/terraform-exec that referenced this issue Oct 19, 2020
@bflad
Copy link
Member Author

bflad commented Oct 19, 2020

Took a swing at this here: #100

@bflad
Copy link
Member Author

bflad commented Feb 2, 2021

Please note that this will now be required in upcoming Terraform CLI versions: hashicorp/terraform#27664

bflad added a commit to bflad/terraform-exec that referenced this issue Feb 2, 2021
@magodo
Copy link
Contributor

magodo commented Jun 11, 2021

Is there any update on this issue?

@radeksimko radeksimko added the enhancement New feature or request label Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants