suzuki-shunsuke / tfcmt

tfcmt enhances mercari/tfnotify in many ways, including Terraform >= v0.15 support and advanced formatting options
https://suzuki-shunsuke.github.io/tfcmt/
Other
417 stars 45 forks source link

Enable us to make tfcmt fail if the result of `terraform plan` has warning #1127

Open suzuki-shunsuke opened 9 months ago

suzuki-shunsuke commented 9 months ago

Feature Overview

Enable us to make tfcmt fail if the result of terraform plan has warning.

Why is the feature needed?

To have users fix warnings.

Example Code

$ tfcmt plan -fail-warning
export TFCMT_FAIL_WARNING=true

Configuration

fail_warning:
  enable: true
  ignore_warnings:
      # regexp
    - target: foo
      # regexp
      warning: Prefer using `restricted_roles` to define which roles are required to edit
the dashboard.

note

No response