
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
serverless-aws-alias-v4
Advanced tools
Serverless framework plugin to manage AWS Lambda aliases and API Gateway integrations
serverless-aws-alias-v4
Serverless framework plugin to manage AWS Lambda aliases and API Gateway integrations
This plugin facilitates the management of multiple Lambda function versions and seamlessly updates API Gateway endpoints to reference the appropriate alias.
Key features:
npm install --save-dev serverless-aws-alias-v4
Add the plugin to your serverless.yml
file:
plugins:
- serverless-aws-alias-v4
Configure the plugin in your serverless.yml
file:
custom:
alias: dev
If the alias
property is not defined, the plugin will use the stage name specified in the provider section as a fallback.
provider:
stage: dev
This plugin supports both HTTP (REST API) and WebSocket event types:
functions:
hello:
handler: handler.hello
events:
- http:
path: hello
method: GET
For HTTP APIs, you can specify a REST API ID in your provider configuration:
provider:
apiGateway:
restApiId: abcdef123456
functions:
connect:
handler: handler.connect
events:
- websocket: $connect
disconnect:
handler: handler.disconnect
events:
- websocket: $disconnect
default:
handler: handler.default
events:
- websocket: $default
# Custom route
message:
handler: handler.message
events:
- websocket:
route: sendMessage
For WebSocket APIs, you can specify a WebSocket API ID in your provider configuration:
provider:
websocketApiId: wxyz987654
You can mix both HTTP and WebSocket events in the same service, and the plugin will handle both types correctly.
To exclude specific functions from alias management:
custom:
alias:
name: dev
excludedFunctions:
- some-function
# or (will fallback to provider stage)
alias:
excludedFunctions:
- some-function
If you're using the serverless-plugin-warmup
plugin alongside this plugin and don't want to create an alias for the warmup function, make sure to add it to your excluded functions configuration:
custom:
alias:
name: dev
excludedFunctions:
- warmUpPluginDefault
# or (will fallback to provider stage)
alias:
excludedFunctions:
- warmUpPluginDefault
When using this plugin, be aware of the following compatibility considerations:
By default, only error messages are displayed. To view detailed logs, use one of these methods:
SLS_DEBUG=*
--verbose
or -v
flag when deploying: sls deploy --verbose
custom:
alias:
name: dev
verbose: true
# or (will fallback to provider stage)
alias:
verbose: true
This project is licensed under the MIT License - see the LICENSE.md file for details.
Contributions are welcome! Feel free to submit a pull request or open an issue.
FAQs
Serverless framework plugin to manage AWS Lambda aliases and API Gateway integrations
The npm package serverless-aws-alias-v4 receives a total of 323 weekly downloads. As such, serverless-aws-alias-v4 popularity was classified as not popular.
We found that serverless-aws-alias-v4 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.