1.0.1 • Published 7 years ago

serverless-plugin-api-gateway-auth v1.0.1

Weekly downloads
293
License
ISC
Repository
github
Last release
7 years ago

serverless-plugin-api-gateway-auth

Serverless plugin supporting AWS_IAM authorizer on API Gateway method

Adds the ability to configure AWS_IAM for your API Gateway endpoints, and "Invoke with caller credentials"

Usage

register plugin:

plugins:
  - serverless-plugin-api-gateway-auth

enable IAM authentication:

    myFuncGetItem:
      handler: myFunc.get
      name: ${self:provider.stage}-myFunc-get-item
      memorySize: 128
      events:
        - http:
            method: GET
            path: mypath
            cors: true
            useIAMAuth: true
            invokeWithCallerCredentials: true