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.2.1.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file awswrapper-0.2.1.tar.gz.

File metadata

  • Download URL: awswrapper-0.2.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for awswrapper-0.2.1.tar.gz
Algorithm Hash digest
SHA256 46c007dbf9a51786a1debaf6daed5e4a1f39d3c0528d96893dd001b0c44bd8e1
MD5 005d36a56f86b7ad5dd3cfa338269582
BLAKE2b-256 8cbfeb87b1b440b9f11f44305658a9ee5ef69d10de70b00beecccd50bdb1293a

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