https://pulumi.com logo
#general
Title
# general
b

billions-lock-80282

07/02/2019, 12:39 PM
Hey, how do I create a config variable as a list? This is for nodeLocations property for GKE cluster. pulumi.config doesn't support lists.
b

billions-lock-80282

07/02/2019, 12:41 PM
I saw this but this just works for objects(key value pairs). I just want a list of zones.
t

tall-librarian-49374

07/02/2019, 12:44 PM
You can do arrays instead of object https://stackoverflow.com/revisions/56842796/1
b

billions-lock-80282

07/02/2019, 12:46 PM
ah perfect, I tried that earlier without the outside single quotes. Thanks for your help
t

tall-librarian-49374

07/02/2019, 1:36 PM
Yeah, for the config file itself it's still a string, it just gets parsed by
getConfigObject
Added an array configuration back to the SO answer
b

billions-lock-80282

07/02/2019, 1:39 PM
great thanks