Problem
Terraform Cloud (TFC) runs have completed but are still showing in the "applied" state.
Prerequisites (if applicable)
- TFC self-hosted agents version 1.7.0 and earlier may experience this issue.
- The run is stuck in the "applying" state, and no text appears in the workspace raw log.
Cause
This issue often occurs when Terraform Cloud fails to transition the run status properly after the "apply" job has completed.
Solutions
If you encounter a run stuck in the "applied" state, consider the following solutions:
-
Initiate Force Cancel: To resolve the issue, the user should click on "Cancel." After a 30-second delay, the run will transition to "Force Cancel" if it's not manually canceled during this period.
-
Contact Support: If the user is unable to force cancel the run, we recommend reaching out to HashiCorp Support for further assistance.
Additional Information
- For additional assistance please contact HashiCorp Support.