Matthew
CCoder.com
•Created by Matthew on 2/14/2025 in #help
Multiple VM template - 1 agent + 1 user_data or ...?
Hi. Love Coder.
All public templates appear to assume provisioning only 1 compute thing.
I'm writing a Template that can provision a cluster of VMs but I'm getting an error when I try to create equal count of coder agents ("duplicate agent name: agent"). resource coder_agent is missing a
name
attribute so it can't be created in a loop/count.
* Is there a reference for deploying multiple VMs?
* Does each aws_instance
need a unique coder_agent and unique user_data?
Any guidance would be great. tyvm.
6 replies