1.0.5 • Published 4 years ago

serverless-plugin-decouple v1.0.5

Weekly downloads
605
License
MIT
Repository
-
Last release
4 years ago

serverless-plugin-decouple

Allows serverless stacks which import values to leverage the values of the exports rather than the reference to the exports.

Use case

You have a serverless framework deployment which contains your databases. In the process of refactoring you realize that you want to have a caching layer before your database. Currently you'd have to either make a new export or undeploy your dependant stacks.

Implementing

Install the plugin into the directory your serverless.yml is located

npm install serverless-plugin-decouple

Add the decouple plugin to your plugins, and add a custom variable to turn it on

plugins:
    - serverless-plugin-decouple

custom:
    decouple: ${opt:decouple, 'false'}

Run the deploy command

serverless deploy --decouple true
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago