File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 13
13
#
14
14
# Usage: build_ami.sh --os <os> --region <region> --partition <partition> [--public] [--custom] [--build-date <build-date>]
15
15
# 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 )
17
17
# region: region to copy ami too (supported values: all|us-east-1|us-gov-west-1|...)
18
18
# custom: specifies to create the AMI from a custom AMI-id, which must be specified by variable CUSTOM_AMI_ID in the environment (optional)
19
19
# public: specifies AMIs visibility (optional, default is private)
@@ -131,11 +131,13 @@ check_options() {
131
131
export AWS_REGION=" us-east-1"
132
132
elif [ " ${_partition} " == " govcloud" ]; then
133
133
export AWS_REGION=" us-gov-west-1"
134
+ elif [ " ${_partition} " == " china" ]; then
135
+ export AWS_REGION=" cn-north-1"
134
136
elif [ " ${_partition} " == " region" ]; then
135
137
export AWS_REGION=" ${_region} "
136
138
else
137
139
echo " Must provide AWS partition to build for."
138
- echo " Options: commercial govcloud region"
140
+ echo " Options: commercial govcloud china region"
139
141
exit 1
140
142
fi
141
143
You can’t perform that action at this time.
0 commit comments