Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

mutual-of-enumclaw/serverless-plugin-decouple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published