Skip to main content

AWS/S3 auth plugin for HTTPie.

Project description

httpie-aws-auth

AWS auth plugin for HTTPie.

Installation

$ pip install httpie-aws-auth

You should now see aws under --auth-type / -A in $ http --help output.

Usage

Credentials on the CLI:

The syntax and behavior is the same as with the basic auth.

Specify both access key ID and secret

..code-block:: bash

http –auth-type aws -a ACCESSKEYXXX:AWSSECRETKEYXXX http://bucket.s3.amazonaws.com/test

Specify only the key

There’ll be a password prompt:

..code-block:: bash

$ http -A aws -a ACCESSKEYXXX http://bucket.s3.amazonaws.com/test http: password for ACCESSKEYXXX@bucket.s3.amazonaws.com:

Auth via the AWS_* environment variables

The names are identical to what AWS CLI and other tools use, so you might be already good to go.

export AWS_ACCESS_KEY_ID=ACCESSKEYXXX
export AWS_SECRET_ACCESS_KEY=AWSSECRETKEYXXX

http -A aws http://bucket.s3.amazonaws.com/test

Implementation

This plugin uses https://github.com/tax/python-requests-aws

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 httpie-aws-auth, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size httpie-aws-auth-0.0.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page