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

The possibility of using multiple " --custom-config " #104

Open
dvirtosu opened this issue Nov 28, 2017 · 3 comments
Open

The possibility of using multiple " --custom-config " #104

dvirtosu opened this issue Nov 28, 2017 · 3 comments

Comments

@dvirtosu
Copy link

To launch a project in the DEV account, I need to configure 2 attributes:

  • s3 bucket
  • dev.tfvars - file with params for dev account

So it would be ok, to have the opportunity to launch the recink in the following way:
recink run terraform -vv
   --custom-config = "wos_gipp.terraform.var-files.0: dev.tfvars"
   --custom-config = "$ .cache.options.0.'s3 // test-tf-remotestate / '"

@ddimitrioglo
Copy link
Contributor

ddimitrioglo commented Nov 29, 2017

Waiting @eistrati's approval.
For the time being you can pass multiple configs like this:

recink run terraform -vv --custom-config="$.cache.options.0:'s3//test-tf-remotestate/',wos_gipp.terraform.var-files.0:dev.tfvars"

@dvirtosu
Copy link
Author

dvirtosu commented Dec 4, 2017

Hi, i try use comma separate, but result was , something like this:
wos_gipp:
root: './......'
terraform:
var-files:
- dev.tfvars , $.cache.options.0:'s3//test-tf-remotestate/

This result i had few day ago, i will try test this today, and i will write you

@eistrati
Copy link
Contributor

eistrati commented Dec 4, 2017

I don't think this should be high priority. This can be solved as follows:

recink run terraform -vv \
  --include-modules="wos_gipp" \
  --custom-config="wos_gipp.terraform.var-files.0:dev.tfvars"
",$.cache.options.0:'s3//test-tf-remotestate/'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants