EC2 instances often account for the largest portion of your AWS bill. Yet, it's notoriously difficult to get a simple list of all EC2 instances across all regions and accounts, as threads on StackOverflow and Reddit show.
You also then want to use that list to ask questions about your inventory, such as:
- How many total instances are there?
- Which instances are running?
- Which instances are missing tags?
- Which resources have an expiration date?
In this post, I'll describe how to use Resoto to build an EC2 cloud asset inventory. The baseline inventory is a list with all EC2 instances, which you then can use to create more narrow and detailed views.