Regula pre-commit hook⚓︎
Best viewed on the live website.
I wrote this procedure to explain how to use a pre-commit hook to check infrastructure-as-code for policy violations before the code is committed. An engineer provided the initial .pre-commit-config.yaml
configuration. I modified the hook slightly, and then I tested it on HashiCorp Terraform and AWS CloudFormation configurations I had written.
Links
- PDF: View a downloadable copy of the original document.
- Archived webpage: View an archived copy of the document on the Wayback Machine.
- Live site: View the document on the live website. Note that the content may have been updated since I wrote it.