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

Bug: tfexec to support multiple tfvars files #26

Closed
findkim opened this issue Aug 19, 2020 · 0 comments · Fixed by #44
Closed

Bug: tfexec to support multiple tfvars files #26

findkim opened this issue Aug 19, 2020 · 0 comments · Fixed by #44
Assignees
Labels
bug Something isn't working

Comments

@findkim
Copy link
Contributor

findkim commented Aug 19, 2020

The terraform-exec library currently does not support executing Terraform commands with multiple .tfvars files (source). Consul NIA needs to pass at least 2 variable definition files, one for service info terraform.tfvars and one for dynamic user inputs from user configs task.variables_file.

Until hashicorp/terraform-exec#33 is resolved, user input variables will not work and cause an error during TF plan/apply. Running Consul NIA with a configured task.variables_file will result in a Terraform error along the lines of:

Error: "<variable>": required field is not set
Null values are not allowed for this attribute value.
@findkim findkim added the bug Something isn't working label Aug 19, 2020
@findkim findkim added this to the Technology Preview milestone Aug 19, 2020
@findkim findkim self-assigned this Sep 1, 2020
sarahethompson pushed a commit that referenced this issue Nov 6, 2023
Cleanup script for test generated TFC workspaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant