Skip to content

Commit

Permalink
fix(example): add ca-central-1 to list of regions available (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
WarSame authored and brettstack committed Apr 10, 2018
1 parent 8879cf3 commit 8cfd094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/scripts/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']

if (!accountId || accountId.length !== 12) {
console.error('You must supply a 12 digit account id as --account-id="<accountId>"')
Expand All @@ -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`)
return
}

Expand Down

0 comments on commit 8cfd094

Please sign in to comment.