所以我有一个超过 500 个资源的堆栈,并发现了这个无服务器插件,它根据几种配置拆分堆栈。
下面是我用于拆分堆栈的配置。使用以下配置后,我能够将堆栈拆分为 2。我也收到了警告Serverless: Recoverable error occurred (TooManyRequestsException: Rate exceeded
custom:
splitStacks:
nestedStackCount: 2 # Controls the number of created nested stacks
perFunction: false
perType: false
perGroupFunction: true
为了解决 API 速率限制,我使用了 resourceConcurrency 属性,如下所示
custom:
splitStacks:
nestedStackCount: 2 # Controls the number of created nested stacks
perFunction: false
perType: false
perGroupFunction: true
resourceConcurrency: 20 # Controls how much resources are deployed in parallel. Disabled if absent.
部署后,我收到以下错误
ServerlessError: The CloudFormation template is invalid: ValidationError: Circular dependency between resources: [GetAllUsersLambdaFunction,.....
有什么办法可以解决这个问题吗?resourceConcurrency 是否处于工作状态?