Beispiel #1
0
def security_groups_by_region(aws_region=config.AWS_AWS_REGION):
    """
    Returns all security groups in a particular region
    """
    security_groups = _get_security_groups(aws_region)
    formatter = SecurityGroupFormatter(security_groups)
    formatter.display()
Beispiel #2
0
def all_security_groups():
    """
    Returns all security groups in all regions
    """
    objects = _get_ec2_objects_across_all_regions(_get_security_groups)
    formatter = SecurityGroupFormatter(objects)
    formatter.display()