Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- declare -a volume_ids=()
- mapfile -t volume_ids < <( aws ec2 describe-volumes --filters "Name=attachment.instance-id,Values=${instance_id}" \
- --query 'Volumes[*].Attachments[*].VolumeId' \
- --output=text )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement