0.1.0-beta • Published 1 year ago
serverless-aws-alias-v4 v0.1.0-beta
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-v4Usage
Add the plugin to your serverless.yml file:
plugins:
- serverless-aws-alias-v4!NOTE Some plugins like
serverless-iam-roles-per-functionmust be added after this plugin.
Configure the plugin in your serverless.yml file:
custom:
alias: devIf the alias is not set, the plugin will use the stage name in the provider section.
provider:
stage: dev0.1.0-beta
1 year ago