This message was deleted.
# general
s
This message was deleted.
m
Like this:
Copy code
providerConfig := config.New(ctx, "aws")
location := providerConfig.Get("region")
🙌 1
s
thank you
m
You bet!
We could definitely make this clearer in the docs!
s
Yeah, I did look around and couldn't find anything
my search foo is not that good thoough
m
Gets asked a lot, and I thought it was in there, but not obvious
Thanks for calling it out
🙌 1
Would love your thoughts on this change to the config docs — do you think this would’ve answered your question? https://github.com/pulumi/pulumi-hugo/pull/2456
s
It’s also worth noting that in Go (I don’t think it works for other languages, however) that this also works (I’m currently using it in a number of my Pulumi programs):
Copy code
awsRegion := config.Require(ctx, "aws:region")
m
This also works for YAML, but yeah, I’m not sure how “standard” it is across other languages.