0.1.0-beta • Published 7 months ago

serverless-aws-alias-v4 v0.1.0-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

serverless-aws-alias-v4

Serverless Framework Plugin to manage AWS Lambda aliases and API Gateway integrations

BETA. USE AT YOUR OWN RISK. WILL BE STABLE AT VERSION 1.0.0

This plugin helps maintain multiple versions of Lambda functions and automatically updates API Gateway endpoints to point to the correct alias.

Key features:

  • Creates/updates Lambda aliases based on stage
  • Updates API Gateway integrations to point to aliased functions
  • Manages Lambda invoke permissions for API Gateway
  • Validates API Gateway method settings

Installation

npm install serverless-aws-alias-v4

Usage

Add the plugin to your serverless.yml file:

plugins:
  - serverless-aws-alias-v4

!NOTE Some plugins like serverless-iam-roles-per-function must be added after this plugin.

Configure the plugin in your serverless.yml file:

custom:
  alias: dev

If the alias is not set, the plugin will use the stage name in the provider section.

provider:
  stage: dev