Total EBS Volume for an AWS Account



I did like to generate a report on total ebs volume that I have provisioned for all of my aws resources in a given account in a given region.

Is there a cli command that will aggregate total ebs volume size, regardless of type of ebs volume ?
Any documentation would help.

I did like to do the same for other aws resources, like snapshots etc.

asked 6 years ago1439 views
1 Answer

You can use a JMSEpath query to get what you're after:

aws ec2 describe-volumes --query 'sum(Volumes[].Size)'

You can also filter by region and tags etc

answered 6 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions