echoing-postman-88590
04/05/2022, 11:54 AMPulumi.<stack>.yaml
file:
config:
config:one:
key: val
config:two:
key: val
In order to read this config I have to:
config = pulumi.Config(name="config")
config_one = config.require_object("one")
config_two = config.require_object("two")
Is there away to for
loop`config`over each object?
Thankslimited-rainbow-51650
04/05/2022, 12:25 PMone
and two
upfront?echoing-postman-88590
04/05/2022, 12:44 PMconfig
limited-rainbow-51650
04/05/2022, 12:49 PMconfig:
<projectname>:somekey:
- role: admin
username: user1
- role: admin
username: user2
Then somekey
is a collection over which I can iterate. I'm using Typescript, so I do config.requireObject<MyInterface[]>('somekey')
to retrieve the list of entries with a single call.echoing-postman-88590
04/05/2022, 1:32 PM