These scripts are intended to run on EC2 instances. They need jq
and aws-cli
and permission to mount/unmount volumes.
Tested on Ubuntu 20.04 AMIs.
# Mount an EBS volume with the name "my-volume-name"
# Format it as ext4 (if unformatted) and mount it at /mnt/my-volume-name
./mount-volume.sh my-volume-name /dev/xdvdaa
# Unmount an EBS volume
./unmount-volume.sh my-volume-name