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

loud-nest-15724

08/28/2019, 1:29 PM
Hi, hopefully this is a simple one, how do I access the parameters which the provider libraries require. Specifically I want to get the value of the current region this doesn't seem to get me what I want
Copy code
const region: string = new pulumi.Config().require("aws:region");
a

agreeable-apple-15721

08/28/2019, 1:30 PM
aws.config.region
(where
aws
is
import * as aws from '@pulumi/aws'
) 🙂
l

loud-nest-15724

08/28/2019, 1:31 PM
ahh, great. Thanks @agreeable-apple-15721
a

agreeable-apple-15721

08/28/2019, 1:32 PM
No worries! I hit this too 🙂