Skip to main content

Curl like tool with AWS request signing

Project description

# awscurl [![Build Status](](

Curl like tool with AWS Signature Version 4 request signing.

## Overview
Requests to AWS API must be signed (see [Signing AWS API Requests](
automates the process of signing and allows to make requests to AWS as simple as standard curl command.

## Installation
$ pip install awscurl

#### Installation from source (bleeding edge)
$ pip install git+

#### Installation via Docker
Assumes Docker is installed and the working directory is project root of the cloned repo. Result will be an image named `$USER/awscurl`.

$ docker build --rm -t $USER/awscurl .

On OS X run via a shell script in your $PATH or directly with something like the following:


export AWS_DIR="${AWS_DIR:-$HOME/.aws}"
mkdir -p $AWS_DIR

docker run --rm -it -v "$AWS_DIR:/root/.aws" "$USER/awscurl:latest" "$@"

## Examples
* Call S3:
List bucket content
$ awscurl --service s3

* Call EC2:
$ awscurl --service ec2 ''

* Call API Gateway:
$ awscurl --service execute-api -X POST -d @request.json \

## Options
usage: awscurl [-h] [-v] [-X REQUEST] [-d DATA] [-H HEADER]
[--region REGION] [--service SERVICE]
[--profile AWS_PROFILE]
[--access_key ACCESS_KEY] [--secret_key SECRET_KEY]
[--security_token SECURITY_TOKEN]

Curl AWS request signing If an arg is specified in more than one place, then
command-line values override environment variables which override defaults.

positional arguments:

optional arguments:
-h, --help show this help message and exit
-v, --verbose verbose flag (default: False)
Specify request command to use (default: GET)
-d DATA, --data DATA HTTP POST data (default: )
-H HEADER, --header HEADER
HTTP POST data (default: None)
--region REGION AWS region (default: us-east-1)
--profile PROFILE [env var: AWS_PROFILE] (default: default)
--service SERVICE AWS service (default: execute-api)
--access_key ACCESS_KEY
[env var: AWS_ACCESS_KEY_ID] (default: None)
--secret_key SECRET_KEY
[env var: AWS_SECRET_ACCESS_KEY] (default: None)
--security_token SECURITY_TOKEN
[env var: AWS_SECURITY_TOKEN] (default: None)


If you do not specify the `--access_key` or `--secret_key`
(or environment variables), `awscurl` will attempt to use
the credentials you set in `~/.aws/credentials`. If you
do not specify a `--profile` or `AWS_PROFILE`, `awscurl`
uses `default`.

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 awscurl, version 0.14
Filename, size File type Python version Upload date Hashes
Filename, size awscurl-0.14.tar.gz (6.5 kB) File type Source Python version None Upload date Hashes View

Supported by

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