Example #1
0
    def connect(self, vpc_name):
        """connect to VPC and reflect all attributes into self."""
        self.vpc = self.get_vpc_by_name_tag(vpc_name)

        self.reflect_attrs()

        # attach Enriched Connections to self.
        self.vpc_endpoint = EnrichedVpcEndpoint(self)
        self.elasticache = EnrichedElastiCache(self)
        self.elb = EnrichedElb(self)
        self.key_pair = EnrichedKeyPair(self)
Example #2
0
 def __init__(self, vpc_name=None, region_name=None, profile_name=None):
     self.boto = BotoConnections(region_name, profile_name)
     if vpc_name is not None:
         self.connect(vpc_name)
     self.vpc_endpoint = EnrichedVpcEndpoint(self)