Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme instructions #198

Open
eduard93 opened this issue Nov 3, 2022 · 2 comments
Open

Readme instructions #198

eduard93 opened this issue Nov 3, 2022 · 2 comments

Comments

@eduard93
Copy link

eduard93 commented Nov 3, 2022

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
Copy link
Author

eduard93 commented Nov 3, 2022

Something like:

plugins:
  - serverless-plugin-split-stacks

maybe?

@dougmoscrop
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants