Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.2 KB

README.md

File metadata and controls

26 lines (19 loc) · 1.2 KB

Serverless CloudFormation Template Size

serverless npm version downloads

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.

Setup

  • Install via npm:
npm install serverless-cf-template-size --save-dev
  • Update the plugins section of your serverless.yml:
plugins:
    - serverless-cf-template-size