aws-v4
A small utility to generate AWS Signature V4 using vanilla nodejs.
Use case is especially for AWS API GATEWAY (excute-api) service.
Installation
npm install aws-v4
Example
Below example is using post
request, you can also use other request such as: get
, put
, delete
const axios = ;const awsV4 = ; // Sign your request// This example is post request, you can const signedRequest = awsV4; // Make http request with your signed requestconst options = url: signedRequesturl method: 'post' headers: signedRequestheaders data: {}