fix(websockets): add missing region parameter in api gateway client

This commit is contained in:
Karol Sójko
2023-09-05 13:50:30 +02:00
parent c82345aeeb
commit 6bb44afd91
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -13,6 +13,9 @@ SNS_AWS_REGION=
SQS_QUEUE_URL=
SQS_AWS_REGION=
# (Optional) AWS API Gateway Setup
API_GATEWAY_AWS_REGION=
WEB_SOCKET_CONNECTION_TOKEN_SECRET=
WEB_SOCKET_CONNECTION_TOKEN_TTL=
@@ -94,6 +94,7 @@ export class ContainerConfigLoader {
container.bind<ApiGatewayManagementApiClient>(TYPES.WebSockets_ApiGatewayManagementApiClient).toConstantValue(
new ApiGatewayManagementApiClient({
endpoint: container.get(TYPES.WEBSOCKETS_API_URL),
region: env.get('API_GATEWAY_AWS_REGION', true) ?? 'us-east-1',
}),
)