Terraform allows you to describe your complete infrastructure in the form of code. Even if your servers come from different providers such as AWS or Azure, Terraform helps you build and manage these resources in parallel across providers.
notes
- can’t just import an existing kubernetes cluster → define resources, import state, generate configs but all per resource
- even when changes seem applyable with
terraform plan
, when executing plan things can still go wrong - terraform is not used to manage software inside the CT’s / VM’s that it creates.
- People often fall back to Ansible for that
- proxmox plugin version is important, be sure to use latest to avoid errors
- latest version of proxmox (>8) terraform uses extra roles
- Pool.Allocate Sys.Console Sys.Modify VM.Migrate Sys.Audit SDN.Use
projects
- migrating raspberry pi server to terraformed vm on proxmox
- terraform proxmox k3s nodes https://github.com/aitalian/terraform-proxmox-k3s-rancher
- terraformed Proxmox Malware Lab