Try adding 40 endpoints to one serverless.yml file. You will quickly run over the 200 resource limit for cloudformation.
Actually, now that I think of it, since this is an AWS limitation, it may actually be fine on other providers.
Actually, now that I think of it, since this is an AWS limitation, it may actually be fine on other providers.