def get_ec2_driver(aws):
    ec2 = get_driver(Provider.EC2)(
        aws['access_key'], aws['secret_access_token'],
        region=aws['region'],
    )
    return ec2
Get a libcloud EC2 driver given some credentials and other configuration.
dataset/ETHPy150Open ClusterHQ/flocker/admin/cleanup.py/get_ec2_driver