high-translator-37096
12/09/2022, 8:37 AMconfig-map
property.
I tried to set it with: "some-key":{"value":["some-value-a","some-value-b"]}
which leads to a comma-separated string some-value-a,some-value-b
in the Pulumi.stack.yaml.
I also tried to send: {"some-other-key":[{"value":"some-other-value-a"},{"value":"some-other-value-b"}]}
which leads to a string undefined
in the Pulumi.stack.yaml.
What I would like to see is:
<pulumi-project>:some-key:
- some-value-a
- some-value-b
This could be defined via cli with pulumi config set --path "some-key[0]" "some-value-a"
but how do you do it via automation api?worried-rain-74420
12/09/2022, 3:48 PMhow do you do it via automation api?Are you trying to use Automation API or the GitHub Action? Here's a recent explanation of how to use
config-map
in the action. It's a relatively new feature; we need to improve its documentation for sure.high-translator-37096
12/09/2022, 6:04 PMworried-rain-74420
12/09/2022, 6:06 PMconfig-map: "{env: {value: dev, secret: false}, my-app:releasetag: { value: ["hello", "world"], secret: false}}"
high-translator-37096
12/09/2022, 6:07 PMI tried to set it with: "some-key":{"value":["some-value-a","some-value-b"]} which leads to a comma-separated string some-value-a,some-value-b in the Pulumi.stack.yaml.
worried-rain-74420
12/09/2022, 6:07 PMhigh-translator-37096
12/09/2022, 6:09 PMworried-rain-74420
12/13/2022, 3:50 PMhigh-translator-37096
12/14/2022, 7:40 AMworried-rain-74420
12/14/2022, 4:08 PMhigh-translator-37096
12/20/2022, 11:50 PM