def get_regions():
    'Return an array of the regions this account is active in. Ordered with us-east-1 in the front.'
    ec2 = boto3.client('ec2')
    response = ec2.describe_regions()
    output = ['us-east-1']
    for r in response['Regions']:
        if (r['RegionName'] == 'us-east-1'):
            continue
        output.append(r['RegionName'])
    return output
Return an array of the regions this account is active in. Ordered with us-east-1 in the front.
def get_regions():
    
    ec2 = boto3.client('ec2')
    response = ec2.describe_regions()
    output = ['us-east-1']
    for r in response['Regions']:
        if (r['RegionName'] == 'us-east-1'):
            continue
        output.append(r['RegionName'])
    return output