Skip to content

Instantly share code, notes, and snippets.

@shaon
Created April 24, 2012 15:24
Show Gist options
  • Save shaon/2480581 to your computer and use it in GitHub Desktop.
Save shaon/2480581 to your computer and use it in GitHub Desktop.
Never ever try this at home
import boto
from boto.ec2.regioninfo import RegionInfo
boto_debug=2
if __name__ == '__main__':
conn=boto.connect_ec2(aws_access_key_id="<aws_access_key_id>",
aws_secret_access_key="<aws_secret_access_key>",
is_secure=False,
region=RegionInfo(name="eucalyptus", endpoint="173.205.188.130"),
port=8773,
path="/services/Eucalyptus",
debug=boto_debug)
conn.create_security_group('error', 'this group will create error lol')
# this one causes error: rules without protocol
conn.authorize_security_group_deprecated('error', ip_protocol='', from_port='80', to_port='80', cidr_ip='0.0.0.0/0')
# this one is to fix this
# conn.delete_security_group('error')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment