Remove unused volume?
volumeid=(
done
| vol-xxxxxxxxxxxxxxxxxxx |
| vol-xxxxxxxxxxxxxxxxxxx |
| vol-xxxxxxxxxxxxxxxxxxx |
| vol-xxxxxxxxxxxxxxxxxxx |
| vol-xxxxxxxxxxxxxxxxxxx |
| ) |
| COUNTER=0 |
| for (( i=0; i<${#volumeid[@]}; i++ )); |
| do |
| COUNTER=$((COUNTER+1)) |
| echo "++++"; |
| echo $COUNTER". Removing the volume with the Volume ID: " ${volumeid[$i]}; |
| aws ec2 delete-volume --volume-id ${volumeid[$i]}; |
Comments
Post a Comment