Serverless plugin that prints the number of resources in the generated CloudFormation template and warns if your project is close to the 200 resource limit.
This plugin is similar to serverless-cloudformation-resource-counter except:
- It can return the size of the CloudFormation template without first having to deploy to AWS - it inspects the template after the package lifecycle event is complete.
- It outputs the count of each type of CloudFormation resource in the template.
- Prints warnings when the number of resources is close to the maximum limit.
- Install via npm:
npm install serverless-cf-template-size --save-dev
- Update the
plugins
section of yourserverless.yml
:
plugins:
- serverless-cf-template-size