From 2fdc93786e9bd0ba29e8afe5f9536e87b74bd4d1 Mon Sep 17 00:00:00 2001 From: aiordache Date: Thu, 29 Oct 2020 10:51:57 +0100 Subject: [PATCH] Fix region from environment Signed-off-by: aiordache --- ecs/context.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecs/context.go b/ecs/context.go index 9fbc8fc1..f773cc60 100644 --- a/ecs/context.go +++ b/ecs/context.go @@ -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"