Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/httpie/httpie-aws-auth
AWS / Amazon S3 auth plugin for HTTPie
https://github.com/httpie/httpie-aws-auth
amazon api api-client api-testing auth aws cli http httpie plugin s3
Last synced: 3 months ago
JSON representation
AWS / Amazon S3 auth plugin for HTTPie
- Host: GitHub
- URL: https://github.com/httpie/httpie-aws-auth
- Owner: httpie
- License: other
- Created: 2016-12-08T04:02:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-18T21:13:09.000Z (about 1 year ago)
- Last Synced: 2024-11-17T07:21:12.591Z (3 months ago)
- Topics: amazon, api, api-client, api-testing, auth, aws, cli, http, httpie, plugin, s3
- Language: Python
- Homepage: https://httpie.org
- Size: 5.86 KB
- Stars: 39
- Watchers: 3
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
- starred-awesome - httpie-aws-auth - AWS / Amazon S3 auth plugin for HTTPie (Python)
README
httpie-aws-auth
===============AWS / Amazon S3 auth plugin for `HTTPie `_.
Installation
============.. code-block:: bash
$ pip install --upgrade 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 [email protected]: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... code-block:: bash
export AWS_ACCESS_KEY_ID=ACCESSKEYXXX
export AWS_SECRET_ACCESS_KEY=AWSSECRETKEYXXXhttp -A aws http://bucket.s3.amazonaws.com/test
Implementation
--------------This plugin uses https://github.com/tax/python-requests-aws