average-tiger-58107
06/03/2022, 5:51 PMI want to access environment variables from my config as follows:
const config = new pulumi.Config("environment");
const var1 = config.require("VAR_NAME");
const var2 = config.require("ANOTHER_VAR_NAME");
// This works
config:
environment:VAR_NAME: "my value"
environment:ANOTHER_VAR_NAME: "another value"
----------------------
// This does not work
config:
environment:
VAR_NAME: "my value"
ANOTHER_VAR_NAME: "another value"
It feels redundant to list the environment:
prefix on every line. Am I missing something obvious about YAML? Why doesn't this work?witty-candle-66007
06/03/2022, 5:55 PMaverage-tiger-58107
06/03/2022, 5:58 PMwitty-candle-66007
06/03/2022, 6:03 PMaverage-tiger-58107
06/03/2022, 6:22 PMwitty-candle-66007
06/03/2022, 6:24 PM