v0.6.0
Issues | Pull Requests | v0.5.25...v0.6.0 | Base revision
Features
#851 #876 Support Drift Detection
For details, please see the document.
tfaction enables you to detect the drift periodically and manage the drift as GitHub Issues.
This feature is disabled by default. To enable, please see the document.
tfaction creates an Issue per working directory.
tfaction checks if the drift exists at the following timing.
apply
workflowapply
workflow is run when the pull request is merged- If the job succeeds, the issue is closed.
- If the job fails, the issue is reopened.
schedule-detect-drifts
workflowschedule-detect-drifts
is run periodically- If
terraform plan
has no change, the issue is closed - If the job fails or
terraform plan
has change, the issue is reopened.
tfaction reopens the issue when the drift is detected, and closes the issue when the drift is resolved.
tfaction posts a comment and updates the issue description according to the result of the drift detection.
Example 1. An Issue is closed because terraform apply succeeded and the drift is resolved
Example 2. An Issue is opened because terraform apply fails
Example 3. Drift is checked by schedule-detect-drifts
periodically
Example 4. The latest comment is reflected to the issue description
Good point
If you already use GitHub Issues for your task management, you can add drift handling into your task management naturally.
You don't have to create issues yourself. You can manage issues in GitHub Projects, adjust the priority, and assign someone to issues.
Issue's comments become the history, so you can track when the drift is raised and which pull request caused the drift.
And comments tell you not only the existence of the drift but also the content of the drift.
You can adjust the frequency of the drift detection, and select workfing directories where the dirft detection is enabled.