Ubuntu: Attach EBS Volume & Mount it to a directory

Assume you have installed AWS Command Line Interface and you instance is started with appropriate AWS IAM Role (so you don’t need explicitly provide credentials). —- #!/bin/bash # 1. Make a directory to serve as a mount point mkdir -p /data chown `id -u` /data # 2. Attach EBS volume to the instance export AWS_DEFAULT_REGION=us-east-1 VolumeId=$(awsContinue reading “Ubuntu: Attach EBS Volume & Mount it to a directory”