Skip to content

Commit 1eaeddf

Browse files
author
Sean Smith
committed
Add China to list of Partitions
Signed-off-by: Sean Smith <[email protected]>
1 parent 1e3b07b commit 1eaeddf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

amis/build_ami.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
# Usage: build_ami.sh --os <os> --region <region> --partition <partition> [--public] [--custom] [--build-date <build-date>]
1515
# os: the os to build (supported values: all|centos6|centos7|alinux|ubuntu1404|ubuntu1604)
16-
# partition: partition to build in (supported values: commercial|govcloud)
16+
# partition: partition to build in (supported values: commercial|govcloud|china)
1717
# region: region to copy ami too (supported values: all|us-east-1|us-gov-west-1|...)
1818
# custom: specifies to create the AMI from a custom AMI-id, which must be specified by variable CUSTOM_AMI_ID in the environment (optional)
1919
# public: specifies AMIs visibility (optional, default is private)
@@ -131,11 +131,13 @@ check_options() {
131131
export AWS_REGION="us-east-1"
132132
elif [ "${_partition}" == "govcloud" ]; then
133133
export AWS_REGION="us-gov-west-1"
134+
elif [ "${_partition}" == "china" ]; then
135+
export AWS_REGION="cn-north-1"
134136
elif [ "${_partition}" == "region" ]; then
135137
export AWS_REGION="${_region}"
136138
else
137139
echo "Must provide AWS partition to build for."
138-
echo "Options: commercial govcloud region"
140+
echo "Options: commercial govcloud china region"
139141
exit 1
140142
fi
141143

0 commit comments

Comments
 (0)