Skip to content

Is there a way to execute terraform apply on a schedule using tfaction? #1795

Discussion options

You must be logged in to vote

is there a better approach using tfaction?

tfaction doesn't provide a way to run terraform apply periodically.
It's potentially dangerous, so we have no plan to support it.

Probably you are aware, but tfaction supports the drift detection instead.

GitHub Actions creates a PR to modify the appropriate resources, automatically merges it, and then applies the changes.

I think this would work well.

If you don't want to create prs, you can implement the workflow based on apply.yaml or schedule-detect-drifts.yaml.
tfaction/terraform-apply isn't available because it requires a plan file in GitHub Artifacts, but you can still utilize other actions such as tfaction/setup.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 5st7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants