AWS / Amazon S3 auth plugin for HTTPie.
$ pip install --upgrade httpie-aws-authYou should now see aws under --auth-type / -A in $ http --help output.
The syntax and behavior is the same as with the basic auth.
http --auth-type aws -a ACCESSKEYXXX:AWSSECRETKEYXXX http://bucket.s3.amazonaws.com/testThere'll be a password prompt:
$ http -A aws -a ACCESSKEYXXX http://bucket.s3.amazonaws.com/test
http: password for [email protected]: <enter aws secret key>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/testThis plugin uses https://github.com/tax/python-requests-aws