# automation-api


11/22/2021, 10:44 PM
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>`


11/23/2021, 12:26 AM
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.


11/23/2021, 2:18 PM
You can set pulumi stack configuration values as a part of setup before running your program. Multiple examples here:
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.