Coder Social home page Coder Social logo

accesss3nosdk's Introduction

Accessing Amazon S3 without CLI or SDK

Overview

This project offers a reference for calling Amazon S3 REST API without using the AWS CLI or SDK. It supports Signature Version 4 for signing AWS requests to S3 API. Sometimes, a client environment is restricted and is unallowed to install any external packages or modules. In such a case, installing AWS CLI or an AWS SDK such as Boto3 for Python is not feasible. Assuming Python runtime is available (which is the case in most Unix-like OS environments), the s3.py program from this project can be modified and executed to invoke various S3 APIs.

Amazon S3 API Invoked

The following S3 APIs are called from the program:

  • PutObject
  • GetObject
  • DeleteObject
  • ListObjects
  • ListBuckets
  • CreateBucket
  • DeleteBucket

More APIs can be added easily to s3.py by referencing the REST API syntax documented here.

Installation

Note: s3.py has been tested with Python 2.7 and Python 3.7. Please report any issues running the code.

  1. Configure required environment variables
export AWS_ACCESS_KEY_ID=[your access key id]
export AWS_SECRET_ACCESS_KEY=[your access key secret]
export AWS_S3_BUCKET=[your bucket name]
  1. Clone this repo or download s3.py file, and copy to your Linux machine
  2. Run the program as python s3.py or python2.7 s3.py

License

License

accesss3nosdk's People

Contributors

asksac avatar

Stargazers

Andrew Steurer avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.