<p>You can use AWS CLI and run the below command to get details of all ec2 instances in your account.</p>
<pre><code>aws ec2 describe-instances
</code></pre>
<p>You can also use filters, if required. Please refer the <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html" rel="nofollow noreferrer">documentation</a>.</p>

CC BY-SA 4.0
2021-05-21T18:20:09.453Z
2021-05-23T15:19:04.367Z
2021-05-23T15:19:04.367Z
Samit
<p>I am aware there's a <code>Tag Editor</code> in AWS Console which allows us to export details of all EC2s in an AWS account.</p>
<p>However that list seems to be missing <code>ami and operating system</code> of the EC2.</p>
<p>Is there a way to export details including ami and operating system of each EC2 in an AWS account?</p>

<amazon-web-services><amazon-ec2>
Is there a way to export details of all EC2s in an AWS account?
Biju
# Is there a way to export details of all EC2s in an AWS account?

(Asked by: username_0 on 2021-05-21)

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?

**Tags:** amazon-web-services, amazon-ec2


---

## 1 answers

### Answer by username_1 on 2021-05-21. Score: 5

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.


---

