Skip to main content

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)


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

awswrapper-0.1.2.macosx-10.12-x86_64.tar.gz (4.4 kB view details)

Uploaded Source

Built Distributions

awswrapper-0.1.2-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2 Python 3

awswrapper-0.1.2-py2.7.egg (5.4 kB view details)

Uploaded Source

File details

Details for the file awswrapper-0.1.2.macosx-10.12-x86_64.tar.gz.

File metadata

File hashes

Hashes for awswrapper-0.1.2.macosx-10.12-x86_64.tar.gz
Algorithm Hash digest
SHA256 3d3af1ba451a4794a38bde0bd91f8e71e8afa082a645b8cc30b391b5111b6b04
MD5 91a98a6f4ffe746f197618053ac0bbfd
BLAKE2b-256 d03f8e8990d6d13e4643e68e8ed3fba4bfc0f4a10e12c83af402a947509c8b02

See more details on using hashes here.

File details

Details for the file awswrapper-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for awswrapper-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2a4d68e7a00450c734d4e1b0c92e57a5c9419770bd60de268255ff3ded8bc755
MD5 95e1bf7f9a9ed5fee291a92fadb193bb
BLAKE2b-256 c08896e203f10d3f0a7a4161c7f2f7ee6bc72af5723ac501dce70cdb4ff55b7d

See more details on using hashes here.

File details

Details for the file awswrapper-0.1.2-py2.7.egg.

File metadata

File hashes

Hashes for awswrapper-0.1.2-py2.7.egg
Algorithm Hash digest
SHA256 e48ff84e5460be53e0df899b335252cd938126c91a606d08855e5b916df8b172
MD5 39b4b79f3a51644a68e3cbd25680df93
BLAKE2b-256 7ab099f6aa90e71322e53d94c65af78e9f07027d908f084d12272dfbe0b4d4f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page