3 ms·
Agreed on this advice. When I was new to AWS I kept receiving a bill for a few cents that obviously wasn't worth my time to resolve, but still really irritated
by thoman23 11y ago
Agreed on this advice. When I was new to AWS I kept receiving a bill for a few cents that obviously wasn't worth my time to resolve, but still really irritated my why I couldn't find a running instance. Turns out the running instance was in a different region and I didn't know the EC2 server list displayed only one region at a time.
- res0nat0r 11y agoIf you have the aws cli tool installed this will list all of your instances and their public IP addresses in all regions for you: for region in `aws ec2 describe-regions | awk '{print $NF}'`; do echo $region; aws ec2 describe-instances --region $region --query 'Reservations[].Instances[].[[Tags[?Key==`Name`]| [0].Value], PublicIpAddress]'; echo ; done