orange-kite-80991
11/07/2021, 5:29 PMpulumi.runtime.allConfig()
The following doesn't work:
const config = new pulumi.Config()
const all_envs_str = "'" +
Object.entries(config).map(([key, value]) => `${key}=${value}`).join('\n') + "'"
Result:
name=my_project_name
BTW my overall objective is sending all the Config key-values, including secrets to Docker. If there's a less hacky way to do this I'm all ears.limited-rainbow-51650
11/07/2021, 6:48 PMname
is the only Typescript property on the Config
object: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#Config-nameget
methods to retrieve a single value (https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#Config-get) or I used structured configuration (https://www.pulumi.com/docs/intro/concepts/config/#structured-configuration)config.requireObject<YourInterfaceType>(<yourConfigKey>)
orange-kite-80991
11/07/2021, 7:00 PM