Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. declare -a volume_ids=()
  2. mapfile -t volume_ids < <( aws ec2 describe-volumes --filters "Name=attachment.instance-id,Values=${instance_id}" \
  3. --query 'Volumes[*].Attachments[*].VolumeId' \
  4. --output=text )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement