tfcmt is a fork of mercari/tfnotify (v0.7.0) but is not compatible with it. If you are migrating from tfnotify, be aware of the following breaking changes:
Command Usage
tfnotify used pipes, whereas tfcmt uses a double-dash (--) separator to wrap the Terraform command. This allows tfcmt to capture standard error and exit codes correctly.
Old (tfnotify):
terraform plan | tfnotify plan
New (tfcmt):
tfcmt plan -- terraform plan
Configuration Changes
- File Name: The configuration file name has changed from
tfnotify.yml (or .yaml) to tfcmt.yml (or .yaml). - Structure: The
notifier option has been removed, and the ci structure has changed.
Template Variable Changes
- Replace
.Body with .CombinedOutput (which includes both stdout and stderr). - The
.Message and .Title variables (and their corresponding --message and --title CLI options) have been removed. Use the -var option and the .Vars template variable instead.
Platform Support
tfcmt has a reduced platform footprint compared to tfnotify. It only supports:
- CI: CircleCI, CodeBuild, CloudBuild, GitHub Actions.
- Notifier: GitHub.
Note: For GitLab users, use the hirosassa/tfcmt-gitlab fork instead.
tfcmt plan -- terraform plan