https://pulumi.com logo
Title
c

crooked-laptop-67565

07/12/2022, 3:21 AM
When I run
pulumi new
with an AWS template it asks for the AWS region. How do I change the region later? I don't see it anywhere in the project files
l

little-cartoon-10569

07/12/2022, 3:39 AM
You can set
aws:region: us-west-2
in the stack file. Or update your AWS profile or env vars.
Via the CLI, that would be
pulumi config set aws:region us-west-2
I think? I don't use the CLI, not certain..
Note that all this affects only the default AWS provider. If you use your own provider, you'll need to set it at construction time.
👍 1
c

crooked-laptop-67565

07/12/2022, 3:50 AM
Ahh yes, thanks, I found that. I had tried
pulumi config get aws:region
and it didn't return any value, so I didn't realise I could nevertheless use
pulumi config set aws:region