How to use the AWS CLI to list IP Addresses and other Instance Information
A common request from security officers (ISSO's), managers, or other stakeholders is a high-level summary of instances in their hosting infrastructure. Sometimes this is best delivered as a visualization, but often it's necessary to export the raw data. The AWS CLI has a tool to do this: describe-instances.
The basic usage is well documented, it goes like this: