serverless-canary-apigateway
v1.0.5
Published
Serverless plugin for creating lambda alias for versions, apply to apigateway canary deployment , allow fast rollback.
Downloads
9
Readme
Serverless Internal Plugin This is an internal plugin for the Serverless framework that provides additional commands for managing serverless deployments within our organization.
Commands serverless deploy The deploy command is used to deploy a new version of your serverless application to the specified stage and region.
Usage:
Copy serverless deploy --stage --region serverless promote The promote command is used to promote a deployed version of your serverless application to a different stage.
Usage:
Copy serverless promote --from-stage --to-stage --region serverless rollback The rollback command is used to roll back a deployed version of your serverless application to a previous version.
Usage:
Copy serverless rollback --stage --region --version serverless reroute The reroute command is used to redirect traffic from one version of your serverless application to another.
Usage:
Copy serverless reroute --stage --region --from-version --to-version Installation To install this plugin, add the following to your serverless.yml file:
yaml Copy plugins:
- serverless-internal-plugin Then, run serverless plugin install to install the plugin.
Configuration This plugin requires the following configuration in your serverless.yml file:
yaml Copy custom: internal-plugin: stages: - dev - staging - prod regions: - us-east-1 - us-west-2 - eu-west-1 This configuration specifies the stages and regions that are supported by this plugin.
Contributing If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the GitHub repository.