Skip to content

Commit

Permalink
Add meetings af-south-1 as supported control plane region (#2919)
Browse files Browse the repository at this point in the history
  • Loading branch information
devalevenkatesh authored Jul 3, 2024
1 parent 7e523c0 commit bf22ce0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions demos/serverless/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const supportedControlRegions = [
'ca-central-1',
'us-gov-east-1',
'us-gov-west-1',
'af-south-1',
];

let chimeSDKMediaPipelinesEndpoint = 'https://media-pipelines-chime.us-east-1.amazonaws.com';
Expand All @@ -59,6 +60,12 @@ const supportedMediaPipelinesControlRegions = [
'eu-central-1',
'us-east-1',
'us-west-2',
'ap-south-1',
'ap-northeast-2',
'ap-southeast-2',
'ap-northeast-1',
'ca-central-1',
'eu-west-2',
];

function usage() {
Expand Down Expand Up @@ -272,8 +279,8 @@ function ensureRegion() {
}

function ensureMediaPipelinesRegion() {
if (!(new Set(supportedMediaPipelinesControlRegions)).has(region)) {
console.error(`Amazon Chime SDK Media Pipelines does not support ${region} (control region). Specify one of the following regions: ${supportedMediaPipelinesControlRegions.join(', ')}.\nSee https://docs.aws.amazon.com/chime-sdk/latest/dg/sdk-available-regions.html#sdk-media-pipelines for more information.`);
if (!(new Set(supportedMediaPipelinesControlRegions)).has(mediaPipelinesControlRegion)) {
console.error(`Amazon Chime SDK Media Pipelines does not support ${mediaPipelinesControlRegion} (control region). Specify one of the following regions: ${supportedMediaPipelinesControlRegions.join(', ')}.\nSee https://docs.aws.amazon.com/chime-sdk/latest/dg/sdk-available-regions.html#sdk-media-pipelines for more information.`);
process.exit(1);
}
}
Expand Down

0 comments on commit bf22ce0

Please sign in to comment.