0.1.0 • Published 4 years ago

mappersmith-aws v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

mappersmith-aws

Mappersmith middeware for AWS Signature Version 4 signing process.

Usage

import forge from "mappersmith"
import { configAWSMiddleware } from "mappersmith-aws"

const AWSMiddleware = configAWSMiddleware({ 
  region: "us-east-1",
  service: "execute-api"
})

const api = forge({
  middleware: [
      ...,
      AWSMiddleware
  ]
  ...
})

Important: the middleware should always be the last one in your API definitions since it needs to be aware of all headers.

Params: