serverless-plugin-api-gateway-auth

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i serverless-plugin-api-gateway-auth

Weekly Downloads

188

Version

1.0.1

License

ISC

Last publish

Collaborators

  • nochtap