Total EBS Volume for an AWS Account

0

Hi,

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.

demandé il y a 7 ans1966 vues
2 réponses
0

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 https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-volumes.html

http://jmespath.org/tutorial.html#functions

frosef
répondu il y a 7 ans
0

any option to generate same report on a control tower using UI to know all my member accounts EBS capacity?

Venu
répondu il y a 3 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions