Skip to content

Commit

Permalink
Revert "Region: Adding describe-regions api to pull regions list"
Browse files Browse the repository at this point in the history
Packer support for eu-west-3 is not release yet. Hence we can't
use packer command to copy image, so for now we have to manually copy
to eu-west-3. Revert this change to make packer script
happy with region validation.

Packer has to update it's code to use describe-region api
instead of maintaining it's own list of region. Will cut issue
to packer and possibly PR.

Signed-off-by: Mohan Gandhi <[email protected]>
This reverts commit ce50d34.
  • Loading branch information
mohanasudhan authored and rajachan committed Jan 11, 2018
1 parent c13806f commit bfe8b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_ami.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public=$3
build_date=$4

available_os="centos6 centos7 alinux ubuntu1404 ubuntu1604"
available_regions=$(aws ec2 describe-regions --output text | awk '{print $3}' | xargs | sed -e 's/ /,/g')
available_regions="eu-west-1,eu-west-2,ap-southeast-1,ap-southeast-2,eu-central-1,ap-northeast-1,ap-northeast-2,us-west-2,sa-east-1,us-west-1,us-east-2,ap-south-1,ca-central-1"

if [ "x$os" == "x" ]; then
echo "Must provide OS to build."
Expand Down

0 comments on commit bfe8b09

Please sign in to comment.