File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change
1
+ EBS
2
+ ---
3
+
1
4
ubuntu 10.04 i386: ami-3e02f257
2
5
ubuntu 10.04 x86_64: ami-3202f25b
3
6
centos 5.5 i386: ami-2675854f
4
7
centos 5.5 x86_64: ami-68f80f01
8
+
9
+ S3
10
+ --
11
+ ubuntu 10.04 i386: ami-a403f7cd
12
+ ubuntu 10.04 x86_64: ami-fa01f193
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- if [ -z $3 ]; then
4
- echo " Usage: $0 AMI_ID <i386|x86_64> <dev|prod>"
3
+ if [ -z $4 ]; then
4
+ echo " Usage: $0 AMI_ID <i386|x86_64> <ebs|s3> < dev|prod>"
5
5
exit 1
6
6
fi
7
7
8
8
AMI_ID=$1
9
9
IMAGE_ARCH=$2
10
- ACCOUNT=$3
10
+ IMAGE_TYPE=$3
11
+ ACCOUNT=$4
11
12
IMAGE_SIZE=" m1.small"
12
13
if [ $IMAGE_ARCH == " x86_64" ]; then
13
14
IMAGE_SIZE=" m1.large"
@@ -23,4 +24,4 @@ popd > /dev/null
23
24
ver=` get_ami_version $REPO_PATH `
24
25
25
26
# build it
26
- ./build_ubuntu_ami.sh $AMI_ID suite-$ver -$IMAGE_ARCH -` date +" %Y%m%d" ` -t ebs -s $IMAGE_SIZE
27
+ ./build_ubuntu_ami.sh $AMI_ID suite-$ver -$IMAGE_ARCH -` date +" %Y%m%d" ` -t $IMAGE_TYPE -s $IMAGE_SIZE
You can’t perform that action at this time.
0 commit comments