...
In general, attaching and using an EBS volume can be done like so (from StackOverflow Add EBS to ubuntu EC2 instance):1.
- Create EBS volume in the EC2 section of the AWS console.
...
- Attach EBS volume to `/dev/sdf` (EC2's external name for this particular device number).
...
Format file system `/dev/xvdf` (Ubuntu's internal name for this particular device number):
Code Block sudo mkfs.ext4 /dev/xvdf
...
Mount file system (with update to /etc/fstab so it stays mounted on reboot):
Code Block sudo mkdir -m 000 /vol echo "/dev/xvdf /vol auto noatime 0 0" | sudo tee -a /etc/fstab sudo mount /vol
Accessing source code repos on worker nodes
...