aws_scanner.py
def process_regions(region_list):
    """ 
    Process AWS regions 
  
    This function will process the AWS regions
  
    Parameters: 
    region_list (array): Region list described by boto3 
				EC2 client.describe_regions()
    """    

    for region in region_list['Regions']:

        spinner.update()

        region_name = region['RegionName']

        if not args.region_prefixes == None:
            good_region = False
            for region_prefix in args.region_prefixes[0].split(','):
                if region_name.startswith(region_prefix.lower()):
                    good_region = True
                    break
            if not good_region:
                continue

        region_client = boto3.client('ec2', region_name=region_name)

        process_zones(region_name, boto3.resource('ec2', region_name=region_name), region_client.describe_availability_zones())
 
    Process AWS regions 
  
    This function will process the AWS regions
  
    Parameters: 
    region_list (array): Region list described by boto3 
				EC2 client.describe_regions()
    
Process AWS regions
This function will process the AWS regions

region_list (array): Region list described by boto3
EC2 client.describe_regions()
Process AWS regions This function will process the AWS regions region_list ( array ) : Region list described by boto3 EC2 client . describe_regions ()
def process_regions(region_list):
    for region in region_list['Regions']:
        spinner.update()
        region_name = region['RegionName']
        if not args.region_prefixes == None:
            good_region = False
            for region_prefix in args.region_prefixes[0].split(','):
                if region_name.startswith(region_prefix.lower()):
                    good_region = True
                    break
            if not good_region:
                continue
        region_client = boto3.client('ec2', region_name=region_name)
        process_zones(region_name, boto3.resource('ec2', region_name=region_name), region_client.describe_availability_zones())
def process_regions ( region_list ) : for region in region_list [ 'Regions' ] : spinner . update ( ) region_name = region [ 'RegionName' ] if not args . region_prefixes == None : good_region = False for region_prefix in args . region_prefixes [ 0 ] . split ( ',' ) : if region_name . startswith ( region_prefix . lower ( ) ) : good_region = True break if not good_region : continue region_client = boto3 . client ( 'ec2' , region_name = region_name ) process_zones ( region_name , boto3 . resource ( 'ec2' , region_name = region_name ) , region_client . describe_availability_zones ( ) )
Process AWS regions
This function will process the AWS regions
Process AWS regions This function will process the AWS regions
""" 
    Process AWS regions 
  
    This function will process the AWS regions
  
    Parameters: 
    region_list (array): Region list described by boto3 
				EC2 client.describe_regions()
    """
region_list