What is PSRule?#
PSRule is a rules engine geared towards testing Infrastructure as Code (IaC). Rules you write or import perform static analysis on IaC artifacts such as: templates, manifests, pipelines, and workflows.
Why use PSRule?#
PSRule aims to provide a rich experience for building and running static analysis tests on IaC. While this has some similarities to traditional testing frameworks it extends on the following:
- Reuse and share — existing pre-built rules, configure, or write your own.
- Incremental adoption — with baselines allows you to keep moving forward.
- Handle exceptions — and keep exceptions auditable in git history.
- Documentation — provides recommendations and examples instead of just pass or fail.
Last update:
2022-10-04