Fix region from environment

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2020-10-29 10:51:57 +01:00
parent 53efa312c8
commit 2fdc93786e
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ func getEnvVars() ContextParams {
}
// check REGION env vars
region := os.Getenv("AWS_REGION")
if region == "" {
c.Region = region
if c.Region == "" {
region = os.Getenv("AWS_DEFAULT_REGION")
if region == "" {
region = "us-east-1"