Training material
OpenTofu hands-on
Infrastructure as code, compatible with Terraform
The notes app is built as code – first as Docker containers, then on Kubernetes with Postgres from an operator and login via Keycloak. Plan and state, for_each and modules, remote state with locking and encryption, environments, import and moved, secrets without state, tflint, tofu test, Trivy, Conftest and a Gitea pipeline with the plan in the pull request. Everything applies to Terraform as well – commands, language and providers are compatible.
- OpenTofu
- Terraform
- Kubernetes
- Helm
- Keycloak
- CI/CD
Training plan
- Foreword
- Day 0: The Training Ground
- Day 1: First Resources with the Docker Provider
- Day 2: Variables, Outputs, locals
- Day 3: Understanding State
- Day 4: count, for_each, and Data Sources
- Day 5: Modules
- Day 6: notes on Kubernetes
- Day 7: Helm Provider – Postgres and notes as a Chart
- Day 8: Keycloak Provider – Login as Code
- Day 9: Remote State, Locking, and Encryption
- Day 10: Environments – dev and prod
- Day 11: Import, moved, removed
- Day 12: Secrets – sensitive, ephemeral, write-only
- Day 13: Quality and Tests
- Day 14: CI/CD with Gitea Actions
- Day 15: Competition – Disaster Drills
- Appendix A: Cheat Sheet
- Appendix B: Final Exam