page_title | subcategory | description |
---|---|---|
coder_agent_instance Resource - terraform-provider-coder |
Use this resource to associate an instance ID with an agent for zero-trust authentication. This association is done automatically for "google_compute_instance", "aws_instance", "azurerm_linux_virtual_machine", and "azurerm_windows_virtual_machine" resources. |
Use this resource to associate an instance ID with an agent for zero-trust authentication. This association is done automatically for "google_compute_instance"
, "aws_instance"
, "azurerm_linux_virtual_machine"
, and "azurerm_windows_virtual_machine"
resources.
resource "coder_agent" "dev" {
os = "linux"
arch = "amd64"
auth = "google-instance-identity"
}
resource "google_compute_instance" "dev" {
zone = "us-central1-a"
}
resource "coder_agent_instance" "dev" {
agent_id = coder_agent.dev.id
instance_id = google_compute_instance.dev.instance_id
}
agent_id
(String) Theid
property of acoder_agent
resource to associate with.instance_id
(String) The instance identifier of a provisioned resource.
id
(String) The ID of this resource.