serverless-plugin-generic-stack
v1.0.2
Published
Strips out hard coded stack names from resource naming, allowing resource names to be tied to the stack name
Downloads
52
Maintainers
Readme
serverless-plugin-generic-stack
This plugin removes hard-coded values set by the serverless framework and replaces them with a reference to the AWS::StackName reference. This allows stacks to be made generic and be deployed without requiring a recompile with the serverless framework.
Use case
You want to use serverless framework to deploy components multiple times to different environments after a single build.
Implementing
Install the plugin into the directory your serverless.yml is located
npm install serverless-generic-stackAdd the decouple plugin to your plugins, and add a custom variable to turn it on
plugins:
- serverless-plugin-generic-stack