Can I use lists/arrays in config for a stack?
# general
e
Can I use lists/arrays in config for a stack?
w
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
okay, I'll try that
w
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
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