Skip to content

muccg/libcloud-drivers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccg-libcloud-drivers

Working proof of concept of an EC2 driver for libcloud that uses spot instances rather than on demand. Created by gutting the existing libcloud EC2 driver and adding spot instance support, credit to original authors.

Licence

Apache 2.0

Using

To install as a developer:

virtualenv-2.7 virt
source virt/bin/activate
pip install -e .

To load the driver from your Python code:

from libcloud.compute.providers import get_driver
from ccglibcloud.ec2spot import set_spot_drivers

set_spot_drivers()
cls = get_driver('ec2spot')
driver = cls(ACCESS_ID, SECRET_KEY)

Run the example, its CCG specific and loads AWS creds from your environment:

python example.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages