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 details)
File details
Details for the file awswrapper-0.1.2.macosx-10.12-x86_64.tar.gz
.
File metadata
- Download URL: awswrapper-0.1.2.macosx-10.12-x86_64.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d3af1ba451a4794a38bde0bd91f8e71e8afa082a645b8cc30b391b5111b6b04 |
|
MD5 | 91a98a6f4ffe746f197618053ac0bbfd |
|
BLAKE2b-256 | d03f8e8990d6d13e4643e68e8ed3fba4bfc0f4a10e12c83af402a947509c8b02 |
File details
Details for the file awswrapper-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: awswrapper-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a4d68e7a00450c734d4e1b0c92e57a5c9419770bd60de268255ff3ded8bc755 |
|
MD5 | 95e1bf7f9a9ed5fee291a92fadb193bb |
|
BLAKE2b-256 | c08896e203f10d3f0a7a4161c7f2f7ee6bc72af5723ac501dce70cdb4ff55b7d |
File details
Details for the file awswrapper-0.1.2-py2.7.egg
.
File metadata
- Download URL: awswrapper-0.1.2-py2.7.egg
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48ff84e5460be53e0df899b335252cd938126c91a606d08855e5b916df8b172 |
|
MD5 | 39b4b79f3a51644a68e3cbd25680df93 |
|
BLAKE2b-256 | 7ab099f6aa90e71322e53d94c65af78e9f07027d908f084d12272dfbe0b4d4f5 |