proud-art-41399
12/07/2021, 2:19 PMpulumi config set --path 'foo["bar"]' 100
pulumi -C infra/ config set 'baz' 100
These result in this stack config:
test:baz: "100"
test:foo:
bar: 100
i.e. it's a string value for top-level key while it's number for nested key.billowy-army-68599
12/07/2021, 2:20 PMproud-art-41399
12/07/2021, 3:16 PMget_object()
Python method (https://www.pulumi.com/docs/reference/pkg/python/pulumi/#pulumi.Config.get_object):
This routine simply JSON parses and doesn’t validate the shape of the contents.while for
get()
method (https://www.pulumi.com/docs/reference/pkg/python/pulumi/#pulumi.Config.get) it explicitly returns `str`:
I guess the same or similar logic applies for the Pulumi CLI. Considering the docs, I initially thought it's awkward but desired behavior. Anyway I'll open an issue 👍.get(key: str) → Optional[str]