MitocGroup / recink

REciNK - Rethink Continuous Integration for JavaScript Applications
https://www.npmjs.org/package/recink
Mozilla Public License 2.0
14 stars 5 forks source link

Add capability to send list type variable to terraform *.tfvars #94

Closed euliancom closed 6 years ago

euliancom commented 6 years ago

example stable.tfvars


aws_region = "us-west-2" db_identifiers = ["wos-test1","wos-test2","wos-test3"]


db_identifiers = [ type = "list"] it is a list of rds identifier

when I run terraform script, it would be nice to change the list type variables too

example:

recink run terraform --tf-vars="db_identifiers:[here must be the list]"

eistrati commented 6 years ago

@ddimitrioglo In order to pass a list, you must use explicit values. Referencing to above example, it would look like this:

recink run terraform --tf-vars="db_identifiers.0:wos-test1,db_identifiers.1:wos-test2,db_identifiers.2:wos-test3"

or

recink run terraform --tf-vars="db_identifiers:['wos-test1','wos-test2','wos-test3']"

ddimitrioglo commented 6 years ago

following variant is implemented --tf-vars="db_identifiers.0:wos-test1,db_identifiers.1:wos-test2,db_identifiers.2:wos-test3"

ddimitrioglo commented 6 years ago

@eistrati I think it can be closed

eistrati commented 6 years ago

Checked.