Cloudformation 500 Resource Limit

Customer has one really big serverless file. This is just one out of many repos. This one repo in particular get’s the ‘not more than 500 resources in a cloudformation’ error. I tried a split stack plugin but it doesn’t support v4. Now I’m stuck and don’t really know what to do?

Is there a native v4 way of making nested cfn stacks without having to create yet another serverless file which will create yet another api gateway? I also can’t really tell this customer to “just refactor your app.”

I’m fine with some custom code if needed. I would just need to be pointed to some resource that shows me how to manipulate the underlying CFN.

Edit: Just posting the plugins I found which both seemingly had the same error and does not support v4

This unresolved issue is what I’m stuck on, happens in both of the above:

A few things you can do:

  1. Turn off Lambda versioning by setting versionFunctions: false in Serverless.yml
  2. Some resources like security groups or IAM roles can be created beforehand and pass into Serverless.yml

Let me know if these work

Ultimately, the customer just split the repo into three. This works and I didn’t really have to do anything.