```missing required configuration key "aws:region"...
# automation-api
m
Copy code
missing required configuration key "aws:region": The region where AWS operations will take place. Examples are us-east-1, us-west-2, etc.
    Set a value using the command `pulumi config set aws:region <value>`
l
i hit this using the CLI previously on a freshly installed os image. if i recall the root cause was that my default AWS region was not set in aws config. error message is a a little non-intuitive since it implied the problem was with pulumi rather than the aws environment that pulumi was inheriting.
l
You can set pulumi stack configuration values as a part of setup before running your program. Multiple examples here: https://github.com/pulumi/automation-api-examples/search?q=setconfig
Codifying things like AWS region as a part of stack config is recommended. You can certainly inherit values from the ambient environment, but if you have a teammate or CI system try to run the project, config will make thing more reproducible.