terraform-compliance / cli

a lightweight, security focused, BDD test framework against terraform.
https://terraform-compliance.com
MIT License
1.36k stars 150 forks source link

Return system exit code when running as module #729

Closed mungojam closed 10 months ago

mungojam commented 10 months ago

We've found that terraform compliance failures were not causing our builds to fail

We call terraform compliance using python -m terraform_compliance

I believe it works fine for the .exe mode since that calls cli directly and will handle the exit code from that automatically

eerkunt commented 10 months ago

Thanks for adding this.