Skip to content

Instantly share code, notes, and snippets.

@adgaudio
adgaudio / add_to_security_group.py
Last active December 15, 2015 05:19 — forked from robbyt/secgroup.py
Inspired by https://gist.github.com/robbyt/2493423 This StarCluster plugin grants all tcp, udp and icmp privileges for 10.0.0.0/8 between the current cluster's security group and the given security group, in both directions for cidr block 10.0.0.0/8. This would be particularly useful for using StarCluster within Amazon VPC.
"""
Based on https://gist.github.com/robbyt/2493423
This StarCluster plugin grants all tcp, udp and icmp privileges for 10.0.0.0/8
between the current cluster's security group and the given security group,
in both directions
"""
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log