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 Jul 30, 2024
1 parent 44e5595 commit a831dfd
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 a831dfd

Please sign in to comment.