wiki/creating-ec2-image-from-scratch.md
... ...
@@ -0,0 +1,22 @@
1
+# Creating an Amazon AWS EC2 Image from Scratch
2
+
3
+I started out with a clean "Amazon Linux AMI 2015.03 (HVM), SSD Volume Type - ami-a10897d6" image from Amazon and added the existing Swap and Home snapshots as new volumes. The root/system volume I left as is, to start with. This requires having access to a user key that can be selected when launching the image.
4
+
5
+I then did a `yum update` and added the following packages:
6
+
7
+ - httpd
8
+ - mod_proxy_html
9
+ - tmux
10
+
11
+Then I created a mount point /home/sailing and copied the following lines from the /etc/fstab file from an existing SL instance:
12
+
13
+```
14
+UUID=a1d96e53-233f-4e44-b865-c78b862df3b8 /home/sailing ext4 defaults,noatime,commit=30 0 0
15
+UUID=7d7e68a3-27a1-49ef-908f-a6ebadcc55bb none swap sw 0 0
16
+
17
+# Mount the Android SDK from the Build/Dev box; use a timeout of 10s (100ds)
18
+172.31.28.17:/home/hudson/android-sdk-linux /opt/android-sdk-linux nfs tcp,intr,timeo=100,retry=0
19
+172.31.18.15:/var/log/old /var/log/old nfs tcp,intr,timeo=100,retry=0
20
+```
21
+
22
+This will mount the swap space partition as well as the /home/sailing partition, /var/log/old and the Android SDK stuff required for local builds.
... ...
\ No newline at end of file