@waracle/serverless-cloudformation-validation

1.0.4 • Public • Published

Serverless Framework Cloudformation Validation Plugin

Release Test Coverage Language Version

This Serverless plugins validates the compiled Cloudformation template prior to deployment

Installation

First, add Serverless Cloudformation Validation to your project:

npm install --save-dev @waracle/serverless-cloudformation-validation

Then inside your project's serverless.yml file add following entry to the plugins section: serverless-cloudformation-validation-plugin.
If there is no plugin section you will need to add it to the file.

Note that the "plugin" section for serverless-cloudformation-validation must be at root level on serverless.yml.

It should look something like this:

plugins:
- '@waracle/serverless-cloudformation-validation'

Usage and command line options

None. This plugin is invoked using events triggered by Serverless

Building

Run npm build to transpile the TypeScript into JavaScript

Testing

Run npm test to run the Jest unit test suite

Linting

Run npm run lint to ensure the code is linted correctly.

Running npm run lint:fix will instruct eslint to attempt to fix the linting warnings/errors

Committing

We attempt to follow the Angular Commit Message format for commit messages so semantic-release.

Husky will run the linter on each commit
Pass --no-verify to skip, eg git commit --no-verify

Pushing

Husky will run the Jest test suite on each push, with test coverage and badge generation.
Pass --no-verify to skip, eg git push origin main --no-verify

Publishing

Handled by github actions, semantic-release will process the commits and determine the next version to publish to npm.

Inspiration

This plugin was initially an idea to prevent long deployments failing due to valid YAML but invalid Cloudformation resources.

License

MIT

Contributing

Yes, thank you! This plugin is community-driven, most of its features are from different authors. Please update the docs and tests and add your name to the package.json file. We try to follow Airbnb's JavaScript Style Guide.

Package Sidebar

Install

npm i @waracle/serverless-cloudformation-validation

Weekly Downloads

9

Version

1.0.4

License

MIT

Unpacked Size

13.3 kB

Total Files

6

Last publish

Collaborators

  • nhammond101
  • waracleuk