HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

Is there a way to export details of all EC2s in an AWS account?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
allwayec2saccountdetailsexportawsthere

Problem

I am aware there's a Tag Editor in AWS Console which allows us to export details of all EC2s in an AWS account.

However that list seems to be missing ami and operating system of the EC2.

Is there a way to export details including ami and operating system of each EC2 in an AWS account?

Solution

You can use AWS CLI and run the below command to get details of all ec2 instances in your account.

aws ec2 describe-instances


You can also use filters, if required. Please refer the documentation.

Code Snippets

aws ec2 describe-instances

Context

StackExchange DevOps Q#13961, answer score: 5

Revisions (0)

No revisions yet.