Automating the Workflow
You shouldn't run apply from your laptop in production. You should push code to GitHub and let GitHub Actions do it.
Basic Workflow:
- Developer creates a Pull Request.
- GitHub runs
tofu planand comments on the PR. - Senior review.
- Merge to main -> GitHub runs
tofu apply.