Package Exports
- serverless-plugin-split-stacks
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-plugin-split-stacks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Be advised: This plugin currently migrates the RestApi
resource to a nested stack, which causes your URL to change.
serverless-plugin-split-stacks
The goal if this plugin is to split some resources off in to nested stacks to work around the 200 CloudFormation resource limit.
Migrating resources to nested stacks is tricky beacuse some plugins rely on querying the resource from the main stack and would need to understand this. There are also plenty of issues with moving resources in existing deployments (you frequently get 'resource already exists' errors). Because of this, this plugin is very conservative. It moves only resources of types that seem to be easy to move.
You can see a list of migrations in lib/migrate-resources.js
.
Limitations
You should try to limit the number of functions you have in your service to 20 or so. This plugin is not a substitute for fine-grained services - but even with a domain of a single entity and sub-entity, CRUD operations on each and some stream listeners its easy to exceed 200 resources once monitoring is in place.