Request signature examples
The following examples of AWS signing requests show you how you can use SigV4 to sign requests sent without the AWS SDK or AWS command line tool.
Browser based Amazon S3 upload using HTTP POST
Authenticating Requests: Browser-Based Uploads describes the signature and relevant information that Amazon S3 uses to calculate the signature upon receiving the request.
Example: Browser-Based Upload using HTTP POST (Using AWS Signature Version 4) provides more information with a sample POST policy and a form that you can use to upload a file. The example policy and fictitious credentials show you the workflow and resulting signature and policy hash.
VPC Lattice authenticated requests
Examples for Signature Version 4 (SigV4) authenticated requests provides Python and Java examples showing how you can perform request signing with and without custom interceptors.
Using Signature Version 4 with Amazon Translate
Live
Translations in the Metaverse
Using Signature Version 4 with Neptune
Example: Connecting to Neptune Using Python with Signature Version 4 Signing shows how to make signed requests to Neptune using Python. This example includes variations for using an access key or temporary credentials.
Signing HTTP requests to S3 Glacier
Example Signature Calculation for Streaming API walks you through the details of creating a signature for Upload Archive (POST archive), one of the two streaming APIs in S3 Glacier.
Making HTTP Requests to Amazon SWF
Making HTTP Requests to Amazon SWF shows the header contents for a JSON request to Amazon SWF.
Signature calculation for streaming APIs in Amazon OpenSearch Service
Signing an Amazon OpenSearch Service search request with AWS SDK for PHP Version 3 includes an example of how to send signed HTTP requests to Amazon OpenSearch Service.
Example projects in AWS samples repository
The following example projects show how to sign requests to make Rest API requests to AWS services with common languages such as Python, Node.js, Java, C#, Go and Rust.
Signature Version 4a projects
The sigv4-signing-examples
The sigv4a-signing-examples
Publish to AWS IoT Core
Python code to publish to AWS IoT Core using HTTPs protocol
.Net Framework application to publish to AWS IoT Core using HTTPs
protocol