Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#general
Title
b
bored-river-53178
07/11/2019, 9:25 AM
how can I get the value of "aws:region" from pulumi config?
s
stocky-spoon-28903
07/11/2019, 2:11 PM
aws.config.region
https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/config/vars.ts#L34
b
bored-river-53178
07/11/2019, 4:20 PM
thanks, unfortunately, it can be undefined, so using something like const awsConfig = new pulumi.Config('aws') const region = awsConfig.require('region') as aws.Region looks like an easier option
Post