Created
November 4, 2017 19:34
-
-
Save alex4u2nv/858fa98d05ee9454bc620804c1caafbc to your computer and use it in GitHub Desktop.
cleanup-aws-volumes.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws ec2 describe-volumes --filters Name=status,Values=available --query 'Volumes[*].{ID:VolumeId}' |grep "ID" |cut -d: -f2 |xargs -n 1 aws ec2 delete-volume --volume-id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment