https://pulumi.com logo
#general
Title
# general
j

jolly-egg-4894

07/11/2019, 9:43 AM
Copy code
const awsConfig = new pulumi.Config("aws");
const awsRegion = awsConfig.get("region");
b

bored-river-53178

07/11/2019, 9:48 AM
thank you, I forgot that Config takes an argument
j

jolly-egg-4894

07/11/2019, 9:51 AM
No problem 🙂 You can use config without an argument but it’ll default to your
name
in
Pulumi.yaml
e.g. if your name in
Pulumi.yaml
is
some_lambda
& in your stack config you’ve got
some_lambda:domain: <http://google.com|google.com>
then:
Copy code
const config = new pulumi.Config();
const domain = config.require("domain");
Will grab
<http://google.com|google.com>
b

bored-river-53178

07/11/2019, 10:05 AM
Yes, that's what I usually do, so I forgot to look for arguments of the function, thanks for your help!
👍 1