I’ve been playing around with Terraform lately and It’s amazing! Although, I have few problems which I don’t know how to solve.
Let’s say I want to create an infrastructure of 5 servers, which consist of 2 nomad servers and 3 agents. Now, I’d like to setup this automatically via Terraform so I wouldn’t need to provision and configure each of those servers manually. How can I do that with Terraform? The thing I’m mostly interested in is updating Nomad configuration files on those servers within Terraform (for example: adding new host volumes) without the need to recreate the whole instances.
I’d very appreciate any guidance here!