Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Terraform Orb - Provide a working directory parameter #106

Open
steinybot opened this issue Mar 17, 2020 · 1 comment
Open

Terraform Orb - Provide a working directory parameter #106

steinybot opened this issue Mar 17, 2020 · 1 comment

Comments

@steinybot
Copy link

Terraform will only load terraform.tfvars or *.auto.tfvars from the current working directory (see hashicorp/terraform#16197).

There needs to be a parameter to specify the working directory to workaround this "expected behaviour".

@steinybot steinybot changed the title Provide a working directory parameter Terraform Orb - Provide a working directory parameter Mar 17, 2020
@danielflookovo
Copy link
Contributor

danielflookovo commented Mar 17, 2020

CircleCI has working_directory parameters for changing the working directory, so we avoided a conflicting option. This means the working directory will most likely be the root of the checked out repo.

I'd suggest using the var/var_file parameters instead or relying on the auto loading behaviour.

This might get changed in the future. I think this should be addressed by making the auto loading work as expected, based on the path parameter.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants