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.

posta 7 anni fa1966 visualizzazioni
2 Risposte
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
con risposta 7 anni fa
0

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

Venu
con risposta 3 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande