8000 fix lambda_sqs_integration region resolution to avoid CI failures (#6… · localstack/localstack@a712228 · GitHub
[go: up one dir, main page]

Skip to content

Commit a712228

Browse files
authored
fix lambda_sqs_integration region resolution to avoid CI failures (#6666)
1 parent ae712f0 commit a712228

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/integration/awslambda/functions/lambda_sqs_integration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@ def create_external_boto_client(service):
4949
endpoint_url = (
5050
f"http://{os.environ['LOCALSTACK_HOSTNAME']}:{os.environ.get('EDGE_PORT', 4566)}"
5151
)
52-
return boto3.client(service, endpoint_url=endpoint_url)
52+
region_name = (
53+
os.environ.get("AWS_DEFAULT_REGION") or os.environ.get("AWS_REGION") or "us-east-1"
54+
)
55+
return boto3.client(service, endpoint_url=endpoint_url, region_name=region_name)

0 commit comments

Comments
 (0)
0