diff --git a/packages/amplify-e2e-core/src/configure/index.ts b/packages/amplify-e2e-core/src/configure/index.ts index 4c5523e7af2..a7a78386a1e 100644 --- a/packages/amplify-e2e-core/src/configure/index.ts +++ b/packages/amplify-e2e-core/src/configure/index.ts @@ -34,6 +34,7 @@ export const amplifyRegions = [ 'eu-west-2', 'eu-west-3', 'eu-central-1', + 'ap-east-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-northeast-3', diff --git a/packages/amplify-provider-awscloudformation/src/aws-predictions-regions.js b/packages/amplify-provider-awscloudformation/src/aws-predictions-regions.js index 48ff5946a4a..078ed91c3c0 100644 --- a/packages/amplify-provider-awscloudformation/src/aws-predictions-regions.js +++ b/packages/amplify-provider-awscloudformation/src/aws-predictions-regions.js @@ -17,6 +17,7 @@ const Translate = { 'eu-central-1': 'eu-central-1', 'eu-north-1': 'eu-north-1', 'eu-south-1': 'eu-central-1', + 'ap-east-1': 'ap-northeast-2', 'ap-northeast-1': 'ap-northeast-1', 'ap-northeast-2': 'ap-northeast-2', 'ap-northeast-3': 'ap-northeast-1', @@ -39,6 +40,7 @@ const Polly = { 'eu-central-1': 'eu-central-1', 'eu-north-1': 'eu-north-1', 'eu-south-1': 'eu-central-1', + 'ap-east-1': 'ap-east-1', 'ap-northeast-1': 'ap-northeast-1', 'ap-northeast-2': 'ap-northeast-2', 'ap-northeast-3': 'ap-northeast-3', @@ -61,6 +63,7 @@ const Transcribe = { 'eu-central-1': 'eu-central-1', 'eu-north-1': 'eu-central-1', 'eu-south-1': 'eu-central-1', + 'ap-east-1': 'ap-east-1', 'ap-northeast-1': latestTranscribeRegions >= 1 ? 'ap-northeast-1' : 'ap-northeast-2', 'ap-northeast-2': 'ap-northeast-2', 'ap-northeast-3': 'ap-northeast-1', @@ -83,6 +86,7 @@ const Rekognition = { 'eu-central-1': 'eu-central-1', 'eu-north-1': 'eu-central-1', 'eu-south-1': 'eu-central-1', + 'ap-east-1': 'ap-northeast-1', 'ap-northeast-1': 'ap-northeast-1', 'ap-northeast-2': 'ap-northeast-2', 'ap-northeast-3': 'ap-northeast-1', @@ -105,6 +109,7 @@ const RekognitionAndTextract = { 'eu-central-1': latestTextractRegions >= 1 ? 'eu-central-1' : 'us-east-1', 'eu-north-1': 'eu-central-1', 'eu-south-1': 'eu-central-1', + 'ap-east-1': 'ap-northeast-2', 'ap-northeast-1': 'us-east-1', 'ap-northeast-2': latestTextractRegions >= 1 ? 'ap-northeast-2' : 'us-east-1', 'ap-northeast-3': 'ap-northeast-2', @@ -127,6 +132,7 @@ const Comprehend = { 'eu-central-1': 'eu-central-1', 'eu-north-1': 'eu-central-1', 'eu-south-1': 'eu-central-1', + 'ap-east-1': 'ap-northeast-2', 'ap-northeast-1': latestComprehendRegions >= 1 ? 'ap-northeast-1' : 'us-east-1', 'ap-northeast-2': latestComprehendRegions >= 1 ? 'ap-northeast-2' : 'us-east-1', 'ap-northeast-3': 'ap-northeast-1', @@ -149,6 +155,7 @@ const SageMaker = { 'eu-central-1': 'eu-central-1', 'eu-north-1': 'eu-north-1', 'eu-south-1': 'eu-south-1', + 'ap-east-1': 'ap-east-1', 'ap-northeast-1': 'ap-northeast-1', 'ap-northeast-2': 'ap-northeast-2', 'ap-northeast-3': 'ap-northeast-3', diff --git a/packages/amplify-provider-awscloudformation/src/aws-regions.js b/packages/amplify-provider-awscloudformation/src/aws-regions.js index 988be8ada1c..1b3d9e76e76 100644 --- a/packages/amplify-provider-awscloudformation/src/aws-regions.js +++ b/packages/amplify-provider-awscloudformation/src/aws-regions.js @@ -12,6 +12,7 @@ const regionMappings = { 'eu-west-2': 'EU (London)', 'eu-west-3': 'EU (Paris)', 'eu-central-1': 'EU (Frankfurt)', + 'ap-east-1': 'Asia Pacific (Hong Kong)', 'ap-northeast-1': 'Asia Pacific (Tokyo)', 'ap-northeast-2': 'Asia Pacific (Seoul)', 'ap-northeast-3': 'Asia Pacific (Osaka)', diff --git a/packages/amplify-provider-awscloudformation/src/aws-utils/aws-lex.js b/packages/amplify-provider-awscloudformation/src/aws-utils/aws-lex.js index 2980ed30d20..1b5e1911c0a 100644 --- a/packages/amplify-provider-awscloudformation/src/aws-utils/aws-lex.js +++ b/packages/amplify-provider-awscloudformation/src/aws-utils/aws-lex.js @@ -10,6 +10,7 @@ const serviceRegionMap = { 'us-west-2': 'us-west-2', 'cn-north-1': 'us-west-2', 'cn-northwest-1': 'us-west-2', + 'ap-east-1': 'ap-northeast-2', 'ap-south-1': 'us-west-2', 'ap-northeast-3': 'us-west-2', 'ap-northeast-2': 'us-west-2', diff --git a/packages/amplify-provider-awscloudformation/src/utils/admin-helpers.ts b/packages/amplify-provider-awscloudformation/src/utils/admin-helpers.ts index d9341961464..eebb43b34eb 100644 --- a/packages/amplify-provider-awscloudformation/src/utils/admin-helpers.ts +++ b/packages/amplify-provider-awscloudformation/src/utils/admin-helpers.ts @@ -186,6 +186,10 @@ export const adminBackendMap: { appStateUrl: string; }; } = { + 'ap-east-1': { + amplifyAdminUrl: 'https://ap-east-1.admin.amplifyapp.com', + appStateUrl: 'https://prod.ap-east-1.appstate.amplifyapp.com', + }, 'ap-northeast-1': { amplifyAdminUrl: 'https://ap-northeast-1.admin.amplifyapp.com', appStateUrl: 'https://prod.ap-northeast-1.appstate.amplifyapp.com',