From 50049d5369e8e5b8dc84aa4153f043bfe5265633 Mon Sep 17 00:00:00 2001 From: WarSame Date: Wed, 21 Mar 2018 21:59:59 -0400 Subject: [PATCH 1/2] Added Canada for available regions. --- example/scripts/configure.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/scripts/configure.js b/example/scripts/configure.js index 55fba14c..55615cb2 100644 --- a/example/scripts/configure.js +++ b/example/scripts/configure.js @@ -33,7 +33,7 @@ const accountId = args['account-id'] const bucketName = args['bucket-name'] const functionName = args['function-name'] const region = args.region -const availableRegions = ['us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'eu-west-1', 'eu-west-2', 'eu-central-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2'] +const availableRegions = ['us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'eu-west-1', 'eu-west-2', 'eu-central-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'ca-central-1', 'ca-central-2'] if (!accountId || accountId.length !== 12) { console.error('You must supply a 12 digit account id as --account-id=""') @@ -46,7 +46,7 @@ if (!bucketName) { } if (availableRegions.indexOf(region) === -1) { - console.error(`Amazon API Gateway and Lambda are not available in the ${region} region. Available regions: us-east-1, us-west-2, eu-west-1, eu-central-1, ap-northeast-1, ap-northeast-2, ap-southeast-1, ap-southeast-2`) + console.error(`Amazon API Gateway and Lambda are not available in the ${region} region. Available regions: us-east-1, us-west-2, eu-west-1, eu-central-1, ap-northeast-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, ca-central-1, ca-central-2`) return } From e2fbe12274d96b4ebbc313402bfa38f693e5a2da Mon Sep 17 00:00:00 2001 From: WarSame Date: Wed, 21 Mar 2018 23:55:57 -0400 Subject: [PATCH 2/2] Removed ca-central-2 because it doesn't exist. --- example/scripts/configure.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/scripts/configure.js b/example/scripts/configure.js index 55615cb2..096457c3 100644 --- a/example/scripts/configure.js +++ b/example/scripts/configure.js @@ -33,7 +33,7 @@ const accountId = args['account-id'] const bucketName = args['bucket-name'] const functionName = args['function-name'] const region = args.region -const availableRegions = ['us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'eu-west-1', 'eu-west-2', 'eu-central-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'ca-central-1', 'ca-central-2'] +const availableRegions = ['us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'eu-west-1', 'eu-west-2', 'eu-central-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'ca-central-1'] if (!accountId || accountId.length !== 12) { console.error('You must supply a 12 digit account id as --account-id=""') @@ -46,7 +46,7 @@ if (!bucketName) { } if (availableRegions.indexOf(region) === -1) { - console.error(`Amazon API Gateway and Lambda are not available in the ${region} region. Available regions: us-east-1, us-west-2, eu-west-1, eu-central-1, ap-northeast-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, ca-central-1, ca-central-2`) + console.error(`Amazon API Gateway and Lambda are not available in the ${region} region. Available regions: us-east-1, us-west-2, eu-west-1, eu-central-1, ap-northeast-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, ca-central-1`) return }