Chalice: How to configure AWS Region

Created on 17 Jul 2019  路  3Comments  路  Source: aws/chalice

Is there a way to instruct Chalice what AWS Region should be used for deployment without having to modify the default profile on the machine?

Thanks.

question

Most helpful comment

the AWS sdks respect environment variables, ie. export AWS_DEFAULT_REGION=us-west-2 suffices

All 3 comments

the AWS sdks respect environment variables, ie. export AWS_DEFAULT_REGION=us-west-2 suffices

As @kapilt mentioned, all of the SDKs respect environment variables, so you can set your region using that.

Where and when would you set this? At the top of the app.py? Or somewhere within config?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

montao picture montao  路  4Comments

kortina picture kortina  路  3Comments

calz1 picture calz1  路  3Comments

nedlowe picture nedlowe  路  3Comments

vrinda1410 picture vrinda1410  路  3Comments