I needed something quick and dirty in php to dump out every instance that we had in all of the regions in AWS using PHP, so I whipped this up real quick:
We use tags for the machine name, deployment and machine type, so you may have to do a little editing to fit your AWS usage.
Tweet