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

early-musician-41645

11/19/2018, 10:16 PM
Can I use lists/arrays in config for a stack?
w

white-balloon-205

11/19/2018, 10:17 PM
The values of config are currently always stored as strings. But you can use
config.getObject
to JSON parse the value of the config when you read it.
e

early-musician-41645

11/19/2018, 10:17 PM
okay, I'll try that
w

white-balloon-205

11/19/2018, 10:19 PM
FWIW - the history here is that we were initially focused on
pulumi config set key value
as the primary interface for setting config, which must accept just strings. We then started storing it in the YAML file, which has become a more convenient place to author config. But we still have the restriction to only string values. We plan to extend the config type system in the near future.
e

early-musician-41645

11/19/2018, 11:04 PM
got it. I found a workaround, and the stuff I wanted to store really isn't stack-specific but global to the project for all stacks
2 Views