https://pulumi.com logo
b

billowy-laptop-45963

11/18/2019, 3:47 PM
Copy code
const p = new aws.Provider(`main-provider`, {profile: profile, region: region})
am I correct in that there is no way of getting the profile/region on p?
g

gentle-diamond-70147

11/18/2019, 5:23 PM
You cannot get those values off of the provider object but you can via
aws.config.region
, etc. https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/config/#region
b

billowy-laptop-45963

11/18/2019, 5:59 PM
Thanks, but I'm trying to use this in multi-account/multi-region programs which have multiple providers, I'm not sure I can get what I need from the global config.