How to use AWS SigV4
- 1. Set method, URL, region, service. x-amz-date is YYYYMMDD'T'HHMMSS'Z'.
- 2. Add extra headers. Host and x-amz-date are filled in.
- 3. Optional secret access key. Signature is computed locally.
- 4. No AWS API. This is a teaching helper, not a client.
About this tool
SigV4 is a canonical request plus a keyed hash. This helper shows the canonical request and string to sign, and can HMAC with a secret you paste. The payload hash is SHA-256 of an empty body. It never calls AWS.
Empty payload
UNSIGNED-PAYLOAD in your extra headers is not substituted automatically; the hashed payload in the canonical request is SHA-256("").
Keys
Treat the secret as production-sensitive. Prefer a throwaway IAM user for experiments.
Code examples
Scope
20240101/us-east-1/s3/aws4_request