You need to install aws cli v2 and configure your profiles for this to work.
Once the cli is configured you need to personalize the ** PublicEndpointsAWS.sh ** file with the correct account profile names. Then add or remove any additional regions to scan for the accounts above it. It's better to use more than less as nothing will be reported if there isn't anything in the region.
The script will report the following endpoints:
- Any Public IP's attached to EC2 instances
- Any Public IP's attached to interfaces like a firewall
- Elastic Load Balancers ELB's with Pubic IP's
- RDS instances that use a Public IP
- API Gateways with Public faceing domains
- Elastic Bean Stalk environments
Results endup in the ** endpointlog.txt **
I think RDS might cover Redshift Public IP's but need to research.
There is some formatting issue for the api gateway that needs a fix.