Skip to content

Commit 8cfd094

Browse files
WarSamebrettstack
authored andcommitted
fix(example): add ca-central-1 to list of regions available (#133)
1 parent 8879cf3 commit 8cfd094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/scripts/configure.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const accountId = args['account-id']
3333
const bucketName = args['bucket-name']
3434
const functionName = args['function-name']
3535
const region = args.region
36-
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']
36+
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']
3737

3838
if (!accountId || accountId.length !== 12) {
3939
console.error('You must supply a 12 digit account id as --account-id="<accountId>"')
@@ -46,7 +46,7 @@ if (!bucketName) {
4646
}
4747

4848
if (availableRegions.indexOf(region) === -1) {
49-
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`)
49+
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`)
5050
return
5151
}
5252

0 commit comments

Comments
 (0)