https://pulumi.com logo
s

stocky-spoon-28903

05/31/2019, 7:51 PM
@brave-angle-33257 For first class providers (i.e. those made with
new aws.Provider(.....)
you can set it directly
b

brave-angle-33257

05/31/2019, 7:51 PM
ok.. but for regular usage like
new aws.ec2.Instance()
no?
ive been developing pretty rapidly, and my pattern is to setup a large yaml with all the info for various enviornments dev/stage/prod etc, so in that top yaml I define the region.. but then in some cases spawning new projects I miss the config and end up with things in different regions
not a big deal, thanks for the reply
s

stocky-spoon-28903

05/31/2019, 7:59 PM
IIRC you can also set it via
AWS_DEFAULT_REGION
?
b

brave-angle-33257

05/31/2019, 8:25 PM
yea you can for boto/cli.. wonder if it would take precedence to set it in the env under node? i’ll check..