Skip to main content

A small example package for AWS: S3, EC2, CloudWatch

Project description

Project description

version version version

Custom package for AWS Services

SETUPTOOLS docs

Getting Started

Assuming that you have a supported version of Python installed, you can first set up your environment with:

$ python -m venv .venv
...
$ . .venv/bin/activate

Then, you can install aws-service from PyPI with:

$ python -m pip install aws-service

or install from S3 source with: url

Using AWS-service

After installing aws-service

Next, set up credentials (in e.g. ~/.aws/credentials):

  • aws_access_key_id = YOUR_KEY
  • aws_secret_access_key = YOUR_SECRET
  • Then, set up a default region (in e.g. ~/.aws/config):
  • region=us-east-1

Other credentials configuration method can be found here

Then, from a Python interpreter:

>>> from aws_service.ec2_service import Ec2Service
>>> from aws_service.s3_service import S3Service
>>> from aws_service.cloudwatch_service import CloudwatchService
>>> my_s3 = S3Service()
>>> my_s3.create_new_bucket(bucket_name='my_new_bucket', region='eu-west-2')
>>> my_s3.put_file( file_name='file_1', bucket='my_new_bucket', object_name='custom-name')

Availible modules:

Class S3Service (module s3_service)

Functionality (availible methods):

Class Ec2Service (module ec2_service)

Functionality (availible methods):

Class CloudwatchService (module cloudwatch_service)

Functionality (availible methods):

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

awsservice-0.0.4.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

awsservice-0.0.4-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

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