How do I find an EC2 Instance in a large AWS organization?
I have recently faced the issue repeatedly: a server needs attention, and all info I get for it is a server name and that it’s hosted in AWS. No account ID, no region, no instance ID, not even the team responsible for it.
Since our organization has enough accounts with enough regions that it’s completely unfeasible to look for them manually, I’ve created a small python script that loops through all member accounts, loops through all regions, and grabs the EC2 instances with a specific tag.