Skip to content

Instantly share code, notes, and snippets.

@riveck
riveck / aws_ips.py
Created June 19, 2019 11:34
List all the public IP's from an organization (EC2 and Load Balancers only) through role delegation
#!/usr/bin/env python3
import argparse
import boto3
import socket
parser = argparse.ArgumentParser(description="List all IPs from CMP")
args = parser.parse_args()
boto3.setup_default_session(profile_name="[REDACTED]", region_name="us-east-1")

Keybase proof

I hereby claim:

  • I am riveck on github.
  • I am riveck (https://keybase.io/riveck) on keybase.
  • I have a public key ASDEtBXVPL82WSPWICN19mUwbjuMP95LnbekfKzrXhMiVAo

To claim this, I am signing this object: