dougmoscrop / serverless-plugin-split-stacks

A plugin to generate nested stacks to get around CloudFormation resource/parameter/output limits
297 stars 70 forks source link

Readme instructions #198

Open eduard93 opened 1 year ago

eduard93 commented 1 year ago

I have a deployed stack with 500 resources. After adding a few more I wanted to use serverless-plugin-split-stacks as I get The CloudFormation template is invalid: Template format error: Number of resources, 507, is greater than maximum allowed, 500 error.

I installed the plugin and added this as a first thing in a custom section:

custom:
  splitStacks:
    perFunction: false
    perType: true
    perGroupFunction: false

alternatively tried:

custom:
  splitStacks:
    perFunction: true
    perType: false
    perGroupFunction: false

But the error I get is still: The CloudFormation template is invalid: Template format error: Number of resources, 507, is greater than maximum allowed, 500.

Is there some step I'm missing?

eduard93 commented 1 year ago

Something like:

plugins:
  - serverless-plugin-split-stacks

maybe?

dougmoscrop commented 1 year ago

Yes, that's a requirement for using any serverless plugin, also note that it only migrates a conservative set of resources regardless of strategy, you have to customize it via stacks-map. This is an advanced plugin, and I implore you to consider how to split your application up since it was created originally when the limit was 200, having more than 500 resources in a stack is a recipe for a bad time eventually.