Skip to main content

Curl like tool with AWS request signing

Project description

Curl like tool with AWS Signature Version 4 request signing. Build Status

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

sh $ pip install awscurl

Examples

  • Call S3: List bucket content sh $ awscurl.py --service s3 https://okigan-lambdapics.s3.amazonaws.com

  • Call EC2: sh $ awscurl --service ec2 'https://ec2.amazonaws.com?Action=DescribeRegions&Version=2013-10-15'

  • Call API Gateway: sh $ awscurl --service execute-api -X POST -d @request.json \ https://<prefix>.execute-api.us-east-1.amazonaws.com/<resource>

Options

usage: awscurl.py [-h] [-v] [-X REQUEST] [-d DATA] [-H HEADER]
                  [--region REGION] [--service SERVICE]
                  [--access_key ACCESS_KEY] [--secret_key SECRET_KEY]
                  [--security_token SECURITY_TOKEN]
                  uri

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:
  uri

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         verbose flag (default: False)
  -X REQUEST, --request REQUEST
                        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)
  --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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awscurl-0.6.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file awscurl-0.6.tar.gz.

File metadata

  • Download URL: awscurl-0.6.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for awscurl-0.6.tar.gz
Algorithm Hash digest
SHA256 311501780410bac675590a613ab1e25d1d5b0ce97c3e6ccb2d5e9001582c22f3
MD5 d0589859d1bbedc150d38b46ac074656
BLAKE2b-256 72044f4d0f69f53babea5212780fe2d6997049947b077b20be535e97c223ee9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page