From 9c8d777559f34c6361bba4952bbdc603d36be798 Mon Sep 17 00:00:00 2001 From: Hoon Oh <2078254+hoonoh@users.noreply.github.com> Date: Tue, 14 Dec 2021 09:19:29 +0900 Subject: [PATCH] fix: update constants (#412) Co-authored-by: hoonoh --- src/constants/regions.ts | 3 +++ test/__snapshots__/cli.spec.ts.snap | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/constants/regions.ts b/src/constants/regions.ts index 65b989db..b0fa70fb 100644 --- a/src/constants/regions.ts +++ b/src/constants/regions.ts @@ -11,6 +11,7 @@ export const allRegions = [ 'ap-south-1', 'ap-southeast-1', 'ap-southeast-2', + 'ap-southeast-3', 'ca-central-1', 'eu-central-1', 'eu-north-1', @@ -37,6 +38,7 @@ export const defaultRegions: Region[] = [ 'ap-south-1', 'ap-southeast-1', 'ap-southeast-2', + // 'ap-southeast-3', // requires opt-in 'ca-central-1', 'eu-central-1', 'eu-north-1', @@ -61,6 +63,7 @@ export const regionNames: Record = { 'ap-south-1': 'Asia Pacific (Mumbai)', 'ap-southeast-1': 'Asia Pacific (Singapore)', 'ap-southeast-2': 'Asia Pacific (Sydney)', + 'ap-southeast-3': 'UNKNOWN', // ! TODO: UPDATE UNKNOWN REGION NAME 'ca-central-1': 'Canada (Central)', 'eu-central-1': 'Europe (Frankfurt)', 'eu-north-1': 'Europe (Stockholm)', diff --git a/test/__snapshots__/cli.spec.ts.snap b/test/__snapshots__/cli.spec.ts.snap index 688103d9..4d215400 100644 --- a/test/__snapshots__/cli.spec.ts.snap +++ b/test/__snapshots__/cli.spec.ts.snap @@ -164,8 +164,8 @@ Options: [array] [choices: \\"us-east-1\\", \\"us-east-2\\", \\"us-west-1\\", \\"us-west-2\\", \\"af-south-1\\", \\"ap-east-1\\", \\"ap-northeast-1\\", \\"ap-northeast-2\\", \\"ap-northeast-3\\", \\"ap-south-1\\", \\"ap-southeast-1\\", \\"ap-southeast-2\\", - \\"ca-central-1\\", \\"eu-central-1\\", \\"eu-north-1\\", \\"eu-south-1\\", \\"eu-west-1\\", - \\"eu-west-2\\", \\"eu-west-3\\", \\"me-south-1\\", \\"sa-east-1\\"] + \\"ap-southeast-3\\", \\"ca-central-1\\", \\"eu-central-1\\", \\"eu-north-1\\", \\"eu-south-1\\", + \\"eu-west-1\\", \\"eu-west-2\\", \\"eu-west-3\\", \\"me-south-1\\", \\"sa-east-1\\"] -i, --instanceType EC2 type [array] [choices: \\"a1.medium\\", \\"a1.large\\", \\"a1.xlarge\\", \\"a1.2xlarge\\", \\"a1.4xlarge\\", \\"a1.metal\\", \\"t1.micro\\", \\"t2.micro\\", \\"t2.small\\", \\"t2.medium\\", @@ -479,8 +479,8 @@ Options: [array] [choices: \\"us-east-1\\", \\"us-east-2\\", \\"us-west-1\\", \\"us-west-2\\", \\"af-south-1\\", \\"ap-east-1\\", \\"ap-northeast-1\\", \\"ap-northeast-2\\", \\"ap-northeast-3\\", \\"ap-south-1\\", \\"ap-southeast-1\\", \\"ap-southeast-2\\", - \\"ca-central-1\\", \\"eu-central-1\\", \\"eu-north-1\\", \\"eu-south-1\\", \\"eu-west-1\\", - \\"eu-west-2\\", \\"eu-west-3\\", \\"me-south-1\\", \\"sa-east-1\\"] + \\"ap-southeast-3\\", \\"ca-central-1\\", \\"eu-central-1\\", \\"eu-north-1\\", \\"eu-south-1\\", + \\"eu-west-1\\", \\"eu-west-2\\", \\"eu-west-3\\", \\"me-south-1\\", \\"sa-east-1\\"] -i, --instanceType EC2 type [array] [choices: \\"a1.medium\\", \\"a1.large\\", \\"a1.xlarge\\", \\"a1.2xlarge\\", \\"a1.4xlarge\\", \\"a1.metal\\", \\"t1.micro\\", \\"t2.micro\\", \\"t2.small\\", \\"t2.medium\\",