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.

質問済み 7年前1966ビュー
2回答
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
回答済み 7年前
0

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

Venu
回答済み 3ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ