Wrapper of AWS API to use with Lambda
Project description
awswrapper - AWS API Wrapper
========================
AWS API Wrapper for Lambda
Usage
-----
It will look into your aws credentials file
Import the ec2wrapper
>>> from awswrapper import ec2wrapper
Use describe functions for talk to aws
>>> ec2wrapper.describe_instances(state=None)
>>> ec2wrapper.describe_instances_by_tag(tag, value=None, state=None)
Execute actions on those Instances
>>> ec2wrapper.terminate_instances(instance_ids, dry_run)
>>> ec2wrapper.stop_instances(instance_ids, dry_run)
>>> ec2wrapper.start_instances(instance_ids, dry_run)
Get data from the EC2 Response
>>> ec2wrapper.get_instances_data(ec2_instances)
>>> ec2wrapper.get_instances_ids(ec2_instances)
Get data from Instance
>>> ec2wrapper.get_tags_from_instance(instance)
Get the EC2 Connection
>>> ec2wrapper.get_ec2_connection(instance)
========================
AWS API Wrapper for Lambda
Usage
-----
It will look into your aws credentials file
Import the ec2wrapper
>>> from awswrapper import ec2wrapper
Use describe functions for talk to aws
>>> ec2wrapper.describe_instances(state=None)
>>> ec2wrapper.describe_instances_by_tag(tag, value=None, state=None)
Execute actions on those Instances
>>> ec2wrapper.terminate_instances(instance_ids, dry_run)
>>> ec2wrapper.stop_instances(instance_ids, dry_run)
>>> ec2wrapper.start_instances(instance_ids, dry_run)
Get data from the EC2 Response
>>> ec2wrapper.get_instances_data(ec2_instances)
>>> ec2wrapper.get_instances_ids(ec2_instances)
Get data from Instance
>>> ec2wrapper.get_tags_from_instance(instance)
Get the EC2 Connection
>>> ec2wrapper.get_ec2_connection(instance)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
awswrapper-0.1.2-py2.7.egg
(5.4 kB
view hashes)
Close
Hashes for awswrapper-0.1.2.macosx-10.12-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d3af1ba451a4794a38bde0bd91f8e71e8afa082a645b8cc30b391b5111b6b04 |
|
MD5 | 91a98a6f4ffe746f197618053ac0bbfd |
|
BLAKE2b-256 | d03f8e8990d6d13e4643e68e8ed3fba4bfc0f4a10e12c83af402a947509c8b02 |
Close
Hashes for awswrapper-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a4d68e7a00450c734d4e1b0c92e57a5c9419770bd60de268255ff3ded8bc755 |
|
MD5 | 95e1bf7f9a9ed5fee291a92fadb193bb |
|
BLAKE2b-256 | c08896e203f10d3f0a7a4161c7f2f7ee6bc72af5723ac501dce70cdb4ff55b7d |