terraform { required_providers { coder = { source = "coder/coder" version = "0.9.0" } } } resource "coder_agent" "main" { os = "linux" arch = "amd64" metadata { key = "process_count" display_name = "Process Count" script = "ps -ef | wc -l" interval = 5 timeout = 1 } } resource "null_resource" "about" { depends_on = [ coder_agent.main, ] } resource "coder_metadata" "about_info" { resource_id = null_resource.about.id hide = true icon = "/icon/server.svg" daily_cost = 29 item { key = "hello" value = "world" } item { key = "null" } } resource "coder_metadata" "other_info" { resource_id = null_resource.about.id hide = true icon = "/icon/server.svg" daily_cost = 20 item { key = "hello" value = "world" } }