You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Remove agent_script data source to simplify resources (#8)
This adds a new resource for associating instance IDs, which will only
need to be used in edge-cases. We'll auto-detect instance identifiers
for the most popular cases, and perform zero-trust authentication.
It seemed weird to separate the agent script and agent itself. This also
led to difficulties previewing the operating system prior to start.
-`arch` (String) The architecture the agent will run on. Must be one of: "amd64", "arm64".
44
+
-`os` (String) The operating system the agent will run on. Must be one of: "linux", "darwin", or "windows".
45
+
41
46
### Optional
42
47
43
-
-**env** (Map of String) A mapping of environment variables to set inside the workspace.
44
-
-**id** (String) The ID of this resource.
45
-
-**instance_id** (String) An instance ID from a provisioned instance to enable zero-trust agent authentication.
46
-
-**startup_script** (String) A script to run after the agent starts.
48
+
-`auth` (String) The authentication type the agent will use. Must be one of: "token", "google-instance-identity", "aws-instance-identity", "azure-instance-identity".
49
+
-`env` (Map of String) A mapping of environment variables to set inside the workspace.
50
+
-`id` (String) The ID of this resource.
51
+
-`startup_script` (String) A script to run after the agent starts.
47
52
48
53
### Read-Only
49
54
50
-
-**token** (String) Set the environment variable "CODER_TOKEN" with this token to authenticate an agent.
55
+
-`init_script` (String) Run this script on startup of an instance to initialize the agent.
56
+
-`token` (String) Set the environment variable "CODER_TOKEN" with this token to authenticate an agent.
Use this resource to associate an instance ID with an agent for zero-trust authentication. This association is done automatically for "googlecomputeinstance", "awsinstance", "azurermlinuxvirtualmachine", and "azurermwindowsvirtual_machine" resources.
7
+
---
8
+
9
+
# coder_agent_instance (Resource)
10
+
11
+
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.
0 commit comments