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

terraform: Add support for multiple variables_file #224

Closed
m-yosefpor opened this issue Apr 23, 2020 · 1 comment · Fixed by #394
Closed

terraform: Add support for multiple variables_file #224

m-yosefpor opened this issue Apr 23, 2020 · 1 comment · Fixed by #394
Labels
feature This issue/PR relates to a feature request module module

Comments

@m-yosefpor
Copy link
Contributor

m-yosefpor commented Apr 23, 2020

SUMMARY

Add support for multiple variables_file as we can pass multiple var-files in terraform cli:
terraform apply -var-file="file-1.tfvars" -var-file="file-2.tfvars" -var-file="file-3.tfvars"

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

terraform module

ADDITIONAL INFORMATION

In many projects there are multiple variable files which are needed to be passed to terrform, but right now, the terraform module only supports a single file ( type "path"). But it could be ( type "list")

Expected usage:

- name: Terraform with multiple variables_file(s)
  terraform:
    project_path: '/home/centos/terraform'
    variables_file: 
      - "/home/terraform/overrides/file-1.tfvars"
      - "/home/terraform/overrides/file-2.tfvars"
      - "/home/terraform/overrides/somepath/file-3.tfvars"
    targets: some-target
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants