Files
coder/provisioner/terraform/testdata/resources/devcontainer-resources/converted_state.state.golden
T
Danielle Maywood 1a94aa67a3 feat(provisioner): associate resources with coder_devcontainer (#21602)
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
2026-01-29 00:01:30 +00:00

72 lines
1.9 KiB
Plaintext

{
"Resources": [
{
"name": "dev",
"type": "coder_devcontainer"
},
{
"name": "dev",
"type": "null_resource",
"agents": [
{
"id": "c9ada5fd-2d18-4942-b903-8c95ac337529",
"name": "main",
"operating_system": "linux",
"architecture": "amd64",
"Auth": {
"Token": "723b283e-7b61-4f42-b0af-eb86560343f5"
},
"connection_timeout_seconds": 120,
"display_apps": {
"vscode": true,
"web_terminal": true,
"ssh_helper": true,
"port_forwarding_helper": true
},
"resources_monitoring": {},
"devcontainers": [
{
"workspace_folder": "/workspace",
"name": "dev",
"id": "829a2bfb-3af9-4451-bfd9-04f1c5940bd2",
"subagent_id": "b4db82a1-1cba-4d97-8893-cf2ca9a9fe1a",
"apps": [
{
"slug": "devcontainer-app",
"display_name": "devcontainer-app",
"open_in": 1,
"id": "a917a82a-fc11-9d2e-5431-cdbb8925e507"
}
],
"scripts": [
{
"display_name": "Devcontainer Script",
"script": "echo devcontainer",
"run_on_start": true
}
],
"envs": [
{
"name": "DEVCONTAINER_ENV",
"value": "devcontainer-value"
}
]
}
],
"api_key_scope": "all"
}
]
},
{
"name": "devcontainer-env",
"type": "coder_env"
}
],
"Parameters": [],
"Presets": [],
"ExternalAuthProviders": [],
"AITasks": [],
"HasAITasks": false,
"HasExternalAgents": false
}