chaosmonkey.drivers package


chaosmonkey.drivers.planner module

class chaosmonkey.drivers.ec2_driver.EC2DriverFactory(region=None)[source]

Bases: object

Driver factory to get a libcloud driver with appropriate credentials for AWS provider You can provide credentials by either:

  • Setting AWS_IAM_ROLE in env variables
  • Setting AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in env variables

You can provide the region to connect by either:

  • Provide it at instantiation time
  • Setting AWS_DEFAULT_REGION in env variables

Return a Libcloud driver for AWS EC2 Provider

Returns:Compute driver

Module contents