Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import boto.ec2
- conn = boto.ec2.connect_to_region("us-east-1")
- groups = conn.get_all_security_groups()
- for group in groups:
- print group.name
- for rule in group.rules:
- print rule.ip_protocol, rule.from_port, rule.to_port, rule.grants
Add Comment
Please, Sign In to add comment