lss-serverless-plugin
v0.0.2
Published
Serverless plugin to auto-register services with Local Serverless Stack (LSS) Orchestrator
Maintainers
Readme
Serverless Orchestrator Plugin
Automatically register your Serverless microservices with the Local Serverless Stack Local Orchestrator.
Installation
npm install --save-dev lss-serverless-pluginUsage
Add the plugin to your serverless.yml:
plugins:
- lss-serverless-plugin
custom:
orchestrator:
enabled: true
orchestratorUrl: http://localhost:3100How it works
After running sls package or sls deploy:
- The plugin reads your CloudFormation template from
.serverless/ - Sends a registration request to the Orchestrator
- The Orchestrator provisions resources (DynamoDB, SQS, SNS) to LocalStack
Configuration Options
enabled(boolean, default:true): Enable/disable the pluginorchestratorUrl(string, default:http://localhost:3100): Orchestrator API endpoint
Example with custom config:
plugins:
- lss-serverless-plugin
custom:
orchestrator:
enabled: true
orchestratorUrl: http://my-orchestrator:3100Environment Variables (optional)
You can also use environment variables to override the configuration:
ORCHESTRATOR_URL=http://localhost:3100 sls packageFeatures
✅ Auto-registers on sls package
✅ Auto-registers on sls deploy
✅ Non-blocking: deployment continues even if orchestrator is unavailable
✅ Colored console output
✅ Minimal dependencies
Behavior
- If the Orchestrator is unavailable, the plugin logs a warning but doesn't fail the deployment
- The plugin is compatible with all Serverless Framework providers
- It only reads existing
.serverless/cloudformation-template-update-stack.jsonfiles (doesn't create them)
Troubleshooting
"Orchestrator unavailable" message
Make sure the Orchestrator is running:
cd orchestrator
npm run serverPlugin not found
Make sure you're using a recent version of Serverless Framework (3.0+) and that the plugin is installed in node_modules.
Development
# Build
npm run build
# Watch mode
npm run dev