• Docs
  • Common Use Cases
  • Notifications
  • Alerting on Failures

Alerting on Failures

Execute a command on a failed Apply operation.

The TERRATEAM_ROOT environment variable points to the location of your checked out repository.

workflows:
  - tag_query: ""
    apply:
      - type: init
      - type: apply
      - type: run
        cmd: ["$TERRATEAM_ROOT/scripts/notify.sh"]
        run_on: failure