Ubuntu 14.04 Server HMV
gpu2.2xlarge or gpu2.8xlarge
- root /dev/sda1 20 GB SSD gp2
- EBS /dev/sdf 100 GB SSD gp2
We can add EBS storage later too. It's size is dependent on the size of data that we want to process.
Assign an Elastic IP and associate it with the instance. This is useful if you don't want to run the instance all the time. AWS provides 5 free Elastic IPs to all users only if they are attached to an instance. Any unassociated IP is chargeable.
Inbound:
- http everywhere
- https everywhere
- ssh everywhere
Outboud:
- All Traffic everywhere
Launch the instance and log in with the key.
# List available disk devices
lsblk
# Check filesystem type
sudo file -s /dev/xvdf
# If it says "data", we have to format this disk.
# We will format the disk in ext4 format.
sudo mkfs -t ext4 /dev/xvdf
# create mount directory
sudo mkdir /bigdata
# mount EBS disk
sudo mount -t auto /dev/xvdf /bigdata
# change directory owner from root to user
# e.g. sudo chown user:group /bigdata
sudo chown ubuntu:ubuntu /bigdata
# Now create a script in home directory to mount this volume whenever you run that script.
touch mount_bigdata.sh
echo "sudo mount -t auto /dev/xvdf /bigdata" >> mount_bigdata.sh