Skip to content

v0.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Jun 00:14
· 1173 commits to main since this release

Issues | Pull Requests | v0.5.25...v0.6.0 | Base revision

Features

#851 #876 Support Drift Detection

For details, please see the document.

image

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 workflow
    • apply 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 workflow
    • schedule-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

image

Example 2. An Issue is opened because terraform apply fails

image

Example 3. Drift is checked by schedule-detect-drifts periodically

image

image

Example 4. The latest comment is reflected to the issue description

image

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.