Skip to content

Commit

Permalink
Fix zoom reverse proxy ddbregion set
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavPshenichnikov committed Sep 5, 2024
1 parent 0d8f4b8 commit 693b59f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion zoom-reverse-proxy/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ const ddbRegionsMap = {
const dynamodbTableName = "dynamodb_table_name_placeholder";

const execRegionCode = process.env.AWS_REGION;
var ddbClientRegion = ddbRegionsMap[execRegionCode] || ddbRegionsMap["default"];

var ddbClientRegion = ddbRegionsMap["default"];

if (ddbRegionsMap[execRegionCode]) {
ddbClientRegion = ddbRegionsMap[execRegionCode];

console.log("change ddbClient region from %s to %s", ddbRegionsMap["default"], ddbClientRegion);
}

console.log("DynamoDB client region set to: %s", ddbClientRegion);

Expand Down

0 comments on commit 693b59f

Please sign in to comment.