aws_scanner.py
def process_instances(region_name, zone_name, instances):
    """ 
    Process instances within an AWS region and availability zone
  
    Parameters: 
    region_name (str): The AWS region name (ex. us-west-1)
    zone_name (str): The AWS availability zone name
    instances (array): An array of instances within the availability zone
  
    """
    for instance in instances: 

        if (zone_name == instance.placement['AvailabilityZone']):

            spinner.clear()

            if region_name not in region_headers:
                print("Region: "+region_name)
                region_headers.append(region_name)

            if zone_name not in zone_headers:
                print("\tZone: "+zone_name)
                zone_headers.append(zone_name)

            print("\t\t" + instance.id + "\t" + tag_value(instance.tags,'Name'))
            print("\t\tIP Address:" + instance.public_ip_address);

            scan_instance(instance)
 
    Process instances within an AWS region and availability zone
  
    Parameters: 
    region_name (str): The AWS region name (ex. us-west-1)
    zone_name (str): The AWS availability zone name
    instances (array): An array of instances within the availability zone
  
    
Process instances within an AWS region and availability zone
Parameters:
region_name (str): The AWS region name (ex. us-west-1)
zone_name (str): The AWS availability zone name
instances (array): An array of instances within the availability zone
Process instances within an AWS region and availability zone Parameters : region_name ( str ) : The AWS region name ( ex . us - west - 1 ) zone_name ( str ) : The AWS availability zone name instances ( array ) : An array of instances within the availability zone
def process_instances(region_name, zone_name, instances):
    for instance in instances: 
        if (zone_name == instance.placement['AvailabilityZone']):
            spinner.clear()
            if region_name not in region_headers:
                print("Region: "+region_name)
                region_headers.append(region_name)
            if zone_name not in zone_headers:
                print("\tZone: "+zone_name)
                zone_headers.append(zone_name)
            print("\t\t" + instance.id + "\t" + tag_value(instance.tags,'Name'))
            print("\t\tIP Address:" + instance.public_ip_address);
            scan_instance(instance)
def process_instances ( region_name , zone_name , instances ) : for instance in instances : if ( zone_name == instance . placement [ 'AvailabilityZone' ] ) : spinner . clear ( ) if region_name not in region_headers : print ( "Region: " + region_name ) region_headers . append ( region_name ) if zone_name not in zone_headers : print ( "\tZone: " + zone_name ) zone_headers . append ( zone_name ) print ( "\t\t" + instance . id + "\t" + tag_value ( instance . tags , 'Name' ) ) print ( "\t\tIP Address:" + instance . public_ip_address ) ; scan_instance ( instance )
Process instances within an AWS region and availability zone
Parameters:
region_name (str): The AWS region name (ex.
Process instances within an AWS region and availability zone Parameters : region_name ( str ) : The AWS region name ( ex .
""" 
    Process instances within an AWS region and availability zone
  
    Parameters: 
    region_name (str): The AWS region name (ex. us-west-1)
    zone_name (str): The AWS availability zone name
    instances (array): An array of instances within the availability zone
  
    """
region_name
zone_name
instances