Skip to main content

Wrapper of AWS API to use with Lambda

Project description

awswrapper - AWS API Wrapper

AWS API Wrapper for Lambda


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.

Files for awswrapper, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size awswrapper-0.3.0-py2.py3-none-any.whl (4.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size awswrapper-0.3.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page