Martí
Martí
CCoder.com
Created by Martí on 10/21/2024 in #help
deploy coder_agent with for_each loop
hi there, i'm trying to deploy coder_agent with a for_each loop, but when it's deploying i receive this error "duplicate agent name", but is not any "name" parameter at resource "coder_agent", any idea to fix this? kind regards! resource "coder_agent" "platform" { for_each = local.enabled_platform os = "linux" arch = "amd64" startup_script = try(each.value.startup_script, null) } duplicate agent name: platform
5 replies