mirror of
https://github.com/coder/coder.git
synced 2026-06-05 05:58:20 +00:00
1a94aa67a3
Closes https://github.com/coder/internal/issues/1239 Allow associating `coder_env`, `coder_script` and `coder_app` with `coder_devcontainer` resource. To do this we make use of the newly added `subagent_id` field in the `coder_devcontainer` resource added in https://github.com/coder/terraform-provider-coder/pull/474
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
{
|
|
"Resources": [
|
|
{
|
|
"name": "dev",
|
|
"type": "null_resource",
|
|
"agents": [
|
|
{
|
|
"id": "eb1fa705-34c6-405b-a2ec-70e4efd1614e",
|
|
"name": "main",
|
|
"operating_system": "linux",
|
|
"architecture": "amd64",
|
|
"Auth": {
|
|
"Token": "e8663cf8-6991-40ca-b534-b9d48575cc4e"
|
|
},
|
|
"connection_timeout_seconds": 120,
|
|
"display_apps": {
|
|
"vscode": true,
|
|
"web_terminal": true,
|
|
"ssh_helper": true,
|
|
"port_forwarding_helper": true
|
|
},
|
|
"resources_monitoring": {},
|
|
"devcontainers": [
|
|
{
|
|
"workspace_folder": "/workspace1",
|
|
"name": "dev1",
|
|
"id": "eb9b7f18-c277-48af-af7c-2a8e5fb42bab",
|
|
"subagent_id": "72d17819-ea3b-450a-a502-175886583ecf"
|
|
},
|
|
{
|
|
"workspace_folder": "/workspace2",
|
|
"config_path": "/workspace2/.devcontainer/devcontainer.json",
|
|
"name": "dev2",
|
|
"id": "964430ff-f0d9-4fcb-b645-6333cf6ba9f2",
|
|
"subagent_id": "40a59d56-d3df-488f-b07d-331c0b774bac"
|
|
}
|
|
],
|
|
"api_key_scope": "all"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "dev1",
|
|
"type": "coder_devcontainer"
|
|
},
|
|
{
|
|
"name": "dev2",
|
|
"type": "coder_devcontainer"
|
|
}
|
|
],
|
|
"Parameters": [],
|
|
"Presets": [],
|
|
"ExternalAuthProviders": [],
|
|
"AITasks": [],
|
|
"HasAITasks": false,
|
|
"HasExternalAgents": false
|
|
}
|