From 9cd555cad5472913aa098ce577803edbd59bb2d5 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Thu, 4 Apr 2019 22:31:42 +0000 Subject: [PATCH] AWS script change for additional zones and regions --- net/gce.sh | 2 +- net/scripts/ec2-provider.sh | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/net/gce.sh b/net/gce.sh index ce35fd644d..dd556471c7 100755 --- a/net/gce.sh +++ b/net/gce.sh @@ -23,7 +23,7 @@ ec2) # shellcheck source=net/scripts/ec2-provider.sh source "$here"/scripts/ec2-provider.sh - cpuBootstrapLeaderMachineType=m4.4xlarge + cpuBootstrapLeaderMachineType=m4.2xlarge gpuBootstrapLeaderMachineType=p2.xlarge bootstrapLeaderMachineType=$cpuBootstrapLeaderMachineType fullNodeMachineType=$cpuBootstrapLeaderMachineType diff --git a/net/scripts/ec2-provider.sh b/net/scripts/ec2-provider.sh index 5bde02d84e..17e243a0b4 100644 --- a/net/scripts/ec2-provider.sh +++ b/net/scripts/ec2-provider.sh @@ -49,7 +49,7 @@ __cloud_FindInstances() { declare filter="$1" instances=() - declare -a regions=("us-east-1" "us-west-1" "us-west-2") + declare -a regions=("us-east-1" "us-west-1" "us-west-2" "sa-east-1" "ap-northeast-2" "eu-central-1" "ca-central-1") for region in "${regions[@]}" do declare name publicIp privateIp @@ -202,6 +202,18 @@ cloud_CreateInstances() { us-west-2) imageName="ami-0dc34f4b016c9ce49" ;; + sa-east-1) + imageName="ami-0f1678b6f63a0f923" + ;; + ap-northeast-2) + imageName="ami-0695e34e31339c3ff" + ;; + eu-central-1) + imageName="ami-054e21e355db24124" + ;; + ca-central-1) + imageName="ami-06ed08059bdc08fc9" + ;; *) usage "Unsupported region: $region" ;;