CmdID / aws / aws lightsail
aws lightsail attach-disk
Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--auto-mountingA Boolean value used to determine the automatic mounting of a storage volume to a virtual computer.--disk-nameThe unique Lightsail disk name (my-disk).--disk-pathThe disk path to expose to the instance (/dev/xvdf).--instance-nameThe name of the Lightsail instance where you want to utilize the storage disk.