mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-05 15:57:23 +01:00
initial commit of some preliminary notes
This commit is contained in:
6
ec2/new_volume.sh
Normal file
6
ec2/new_volume.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
export VOLUME_SIZE=1 # in GiB (2^30 bytes)
|
||||
ec2-create-volume -s $VOLUME_SIZE -z $AWS_AZ > volume.info
|
||||
export VOLUME_ID=`cat volume.info | awk {'print $2'}`
|
||||
export VOLUME_IS_NEW=1
|
||||
echo Created new volume: $VOLUME_ID
|
||||
|
||||
18
ec2/start_instance.sh
Normal file
18
ec2/start_instance.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
export AMI=`curl http://cloud-images.ubuntu.com/locator/ec2/releasesTable | python3 tools/get_ubunut_ami.py us-east-1 13.04 amd64 instance-store`
|
||||
ec2run $AMI -k mykey -t m1.small -z $AWS_AZ | tee instance.info
|
||||
export INSTANCE=`cat instance.info | grep INSTANCE | awk {'print $2'}`
|
||||
sleep 5
|
||||
while [ 1 ]
|
||||
do
|
||||
export INSTANCE_IP=`ec2-describe-instances $INSTANCE | grep INSTANCE | awk {'print $14'}`
|
||||
if [ -z "$INSTANCE_IP" ]
|
||||
then
|
||||
echo "Waiting for $INSTANCE to start..."
|
||||
else
|
||||
exit
|
||||
fi
|
||||
sleep 6
|
||||
done
|
||||
|
||||
echo New instance started: $INSTANCE_IP
|
||||
|
||||
Reference in New Issue
Block a user