pacu icon indicating copy to clipboard operation
pacu copied to clipboard

Download Public IP for All Ec2

Open random-robbie opened this issue 6 years ago • 1 comments

Describe the solution you'd like To be able to grab all EC2 public ip's and save them to a file.

Describe alternatives you've considered

aws ec2 describe-instances --filter "Name=instance-state-name,Values=running" --query "Reservations[].Instances[].[PublicIpAddress, Tags[?Key=='Name'].Value|[0]]" --output text

Additional context this would allow to scan all other ip's and see if any other systems are vun.

random-robbie avatar Nov 08 '18 23:11 random-robbie

Great idea, I'll look into implementing this.

It'd be nice if it would also check other common services for other public IPs, like RDS as an example.

SpenGietz avatar Nov 16 '18 18:11 SpenGietz

This is currently possible with the following:

run ec2__enum --public-ips
data ec2 PublicIPs

DaveYesland avatar Jun 12 '23 19:06 DaveYesland