A serverless plugin to count the resources generated in the AWS CloudFormation stack after deployment. It provides an option to warn users when a preset number of resources have been created. This is particularly useful when trying to avoid the 500 resource limit set by CloudFormation.
$ yarn add serverless-cloudformation-resource-counter
$ npm install serverless-cloudformation-resource-counter
plugins:
- serverless-cloudformation-resource-counter
custom:
warningThreshold: 13
Feel free to use the code, it's released using the MIT license.