fabric-aws

fabric AWS integration

Showing:

Popularity

Downloads/wk

0

GitHub Stars

73

Maintenance

Last Commit

7yrs ago

Contributors

2

Package

Dependencies

0

License

UNKNOWN

Categories

Readme

Build Status

Fabric AWS integration

Ever used pychef's fabric integration and loved it?
This project aims to integrate AWS with fabric. You can decorate your fabric tasks to run on an Autoscaling group (which can also be a part of a Cloudformation stack), or on various EC2 instance attribues (tags, instance-type, instance id, etc.)

Installation

Example fabfile

from fabric.api import *
from fabric_aws import *


@autoscaling_group('us-east-1', 'my-autoscaling-group')
@task
def uptime_asg():
    run('uptime')

@cloudformation_autoscaling_group('us-east-1', 'my-cloudformation',
                                  'AutoScalingGroup')
@task
def uptime_cfn():
    run('uptime')

@ec2('us-east-1', instance_ids=['i-01010101', 'i-10101010'])
@task
def uptime_ec2_instance_ids():
    run('uptime')

@ec2('us-east-1', filters={'tag:Name': 'jenkins'})
@task
def uptime_jenkins():
    run('uptime')

# see the documentation for boto.ec2.get_all_instances()
# http://boto.readthedocs.org/en/latest/ref/ec2.html#boto.ec2.connection.EC2Connection.get_all_instances
@ec2('us-east-1', filters={'tag:Name': 'my-vpc-instance'},
     hostname_attribute='private_ip_address')
@task
def uptime_vpc():
    run('uptime')

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial