https://pulumi.com logo
Title
m

many-salesmen-89069

07/02/2021, 9:31 AM
Hello, I’m wondering what’s the best way to set the default AWS region for a project? By project, I mean that I have one
Pulumi.yaml
file and I wish to create multiple different stacks from this, all using the same default AWS region. I’ve tried to use the
template
option in
Pulumi.yaml
as below, but it had no effect (specifically,
pulumi stack init
succeeded, but then
pulumi up
failed due to missing AWS region config):
template:
  config:
    aws:region:
      default: eu-west-1
b

billowy-army-68599

07/02/2021, 9:44 AM
you'll have to set it inside each stack config, or alternatively you can set the
AWS_REGION
environment variable
👍 1
i

icy-football-94152

07/02/2021, 2:45 PM
@billowy-army-68599 Is there a definitive list of resource attributes that can be configured for a whole stack? I tried setting an Azure resourcegroup config value but this was not applied to new resources.
b

billowy-army-68599

07/02/2021, 3:09 PM
Do you mean provider configuration? Can you share a bit more info?
c

crooked-wolf-21506

07/02/2021, 5:22 PM
If it does not change between stacks, shouldn’t you just set the value?