Skip to content

Instantly share code, notes, and snippets.

@jonmorehouse
Last active August 29, 2015 13:57
Command line management of groups
# create a new security group
ec2-add-group -d "Group description" $groupName
# now delete a group
ec2-delete-group $groupName
# authorize rules for a group
ec2-authorize $groupName
# authorize a group to expose all tcp ports
ec2-authorize -P tcp -p -1 $groupName
# authorize a group to only expose a single port
ec2-authorize -P tcp -p 3322 $groupName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment