Exemple #1
0
def get_route53_zones(profile, region, boto_client_params, zone_type, output_format='table'):
    """
    """
    if not profile:
        profile = [None]
    if not region:
        region = [None]

    clients = client_aggregator(profile, region, 'route53', boto_client_params)
    zones = []
    for c in clients:
        zones.extend(route53.get_route53_zones(c, zone_type))
    outputs.output(zones, output_format)
Exemple #2
0
def get_route53_resource_records(profile, region, boto_client_params, zone_type, output_format='table', zone_names=[]):
    """
    """
    if not profile:
        profile = [None]
    if not region:
        region = [None]

    clients = client_aggregator(profile, region, 'route53', boto_client_params)
    records = []
    for c in clients:
        records.extend(route53.get_resource_records(c, zone_names, zone_type))
    outputs.output(records, output_format)
Exemple #3
0
def get_eips(profile, region, boto_client_params, output_format='table'):
    """
    """
    if not profile:
        profile = [None]
    if not region:
        region = [None]

    clients = client_aggregator(profile, region, 'ec2', boto_client_params)
    records = []
    for c in clients:
        records.extend(eips.get_eips(c))

    outputs.output(records, output_format)