Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

bc4eedb · Mar 25, 2022

History

History
47 lines (33 loc) · 1.14 KB

agent_script.md

File metadata and controls

47 lines (33 loc) · 1.14 KB
page_title subcategory description
coder_agent_script Data Source - terraform-provider-coder
Use this data source to get the startup script to pull and start the Coder agent.

coder_agent_script (Data Source)

Use this data source to get the startup script to pull and start the Coder agent.

Example Usage

data "coder_agent_script" "dev" {
  os   = "darwin"
  arch = "amd64"
}

resource "kubernetes_pod" "dev" {
  spec {
    container {
      command = ["sh", "-c", data.coder_agent_script.dev.value]
    }
  }
}

Schema

Required

  • arch (String) The architecture the agent will run on. Must be one of: "amd64", "arm64".
  • os (String) The operating system the agent will run on. Must be one of: "linux", "darwin", or "windows".

Optional

  • auth (String) The authentication type the agent will use. Must be one of: "token", "google-instance-identity", "aws-instance-identity", "azure-instance-identity".
  • id (String) The ID of this resource.

Read-Only

  • value (String)