mirror of
https://github.com/coder/coder.git
synced 2026-06-04 13:38:21 +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
516 lines
13 KiB
JSON
Generated
516 lines
13 KiB
JSON
Generated
{
|
|
"format_version": "1.2",
|
|
"terraform_version": "1.14.1",
|
|
"planned_values": {
|
|
"root_module": {
|
|
"resources": [
|
|
{
|
|
"address": "coder_agent.main",
|
|
"mode": "managed",
|
|
"type": "coder_agent",
|
|
"name": "main",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"schema_version": 1,
|
|
"values": {
|
|
"api_key_scope": "all",
|
|
"arch": "amd64",
|
|
"auth": "token",
|
|
"connection_timeout": 120,
|
|
"dir": null,
|
|
"env": null,
|
|
"metadata": [],
|
|
"motd_file": null,
|
|
"order": null,
|
|
"os": "linux",
|
|
"resources_monitoring": [],
|
|
"shutdown_script": null,
|
|
"startup_script": null,
|
|
"startup_script_behavior": "non-blocking",
|
|
"troubleshooting_url": null
|
|
},
|
|
"sensitive_values": {
|
|
"display_apps": [],
|
|
"metadata": [],
|
|
"resources_monitoring": [],
|
|
"token": true
|
|
}
|
|
},
|
|
{
|
|
"address": "coder_agent.secondary",
|
|
"mode": "managed",
|
|
"type": "coder_agent",
|
|
"name": "secondary",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"schema_version": 1,
|
|
"values": {
|
|
"api_key_scope": "all",
|
|
"arch": "amd64",
|
|
"auth": "token",
|
|
"connection_timeout": 120,
|
|
"dir": null,
|
|
"env": null,
|
|
"metadata": [],
|
|
"motd_file": null,
|
|
"order": null,
|
|
"os": "linux",
|
|
"resources_monitoring": [],
|
|
"shutdown_script": null,
|
|
"startup_script": null,
|
|
"startup_script_behavior": "non-blocking",
|
|
"troubleshooting_url": null
|
|
},
|
|
"sensitive_values": {
|
|
"display_apps": [],
|
|
"metadata": [],
|
|
"resources_monitoring": [],
|
|
"token": true
|
|
}
|
|
},
|
|
{
|
|
"address": "coder_app.devcontainer-app",
|
|
"mode": "managed",
|
|
"type": "coder_app",
|
|
"name": "devcontainer-app",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"schema_version": 1,
|
|
"values": {
|
|
"command": null,
|
|
"display_name": null,
|
|
"external": false,
|
|
"group": null,
|
|
"healthcheck": [],
|
|
"hidden": false,
|
|
"icon": null,
|
|
"open_in": "slim-window",
|
|
"order": null,
|
|
"share": "owner",
|
|
"slug": "devcontainer-app",
|
|
"subdomain": null,
|
|
"tooltip": null,
|
|
"url": null
|
|
},
|
|
"sensitive_values": {
|
|
"healthcheck": []
|
|
}
|
|
},
|
|
{
|
|
"address": "coder_devcontainer.dev",
|
|
"mode": "managed",
|
|
"type": "coder_devcontainer",
|
|
"name": "dev",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"schema_version": 1,
|
|
"values": {
|
|
"config_path": null,
|
|
"workspace_folder": "/workspace"
|
|
},
|
|
"sensitive_values": {}
|
|
},
|
|
{
|
|
"address": "coder_devcontainer.other",
|
|
"mode": "managed",
|
|
"type": "coder_devcontainer",
|
|
"name": "other",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"schema_version": 1,
|
|
"values": {
|
|
"config_path": null,
|
|
"workspace_folder": "/other"
|
|
},
|
|
"sensitive_values": {}
|
|
},
|
|
{
|
|
"address": "null_resource.dev",
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "dev",
|
|
"provider_name": "registry.terraform.io/hashicorp/null",
|
|
"schema_version": 0,
|
|
"values": {
|
|
"triggers": null
|
|
},
|
|
"sensitive_values": {}
|
|
},
|
|
{
|
|
"address": "null_resource.secondary",
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "secondary",
|
|
"provider_name": "registry.terraform.io/hashicorp/null",
|
|
"schema_version": 0,
|
|
"values": {
|
|
"triggers": null
|
|
},
|
|
"sensitive_values": {}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"resource_changes": [
|
|
{
|
|
"address": "coder_agent.main",
|
|
"mode": "managed",
|
|
"type": "coder_agent",
|
|
"name": "main",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"change": {
|
|
"actions": [
|
|
"create"
|
|
],
|
|
"before": null,
|
|
"after": {
|
|
"api_key_scope": "all",
|
|
"arch": "amd64",
|
|
"auth": "token",
|
|
"connection_timeout": 120,
|
|
"dir": null,
|
|
"env": null,
|
|
"metadata": [],
|
|
"motd_file": null,
|
|
"order": null,
|
|
"os": "linux",
|
|
"resources_monitoring": [],
|
|
"shutdown_script": null,
|
|
"startup_script": null,
|
|
"startup_script_behavior": "non-blocking",
|
|
"troubleshooting_url": null
|
|
},
|
|
"after_unknown": {
|
|
"display_apps": true,
|
|
"id": true,
|
|
"init_script": true,
|
|
"metadata": [],
|
|
"resources_monitoring": [],
|
|
"token": true
|
|
},
|
|
"before_sensitive": false,
|
|
"after_sensitive": {
|
|
"display_apps": [],
|
|
"metadata": [],
|
|
"resources_monitoring": [],
|
|
"token": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"address": "coder_agent.secondary",
|
|
"mode": "managed",
|
|
"type": "coder_agent",
|
|
"name": "secondary",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"change": {
|
|
"actions": [
|
|
"create"
|
|
],
|
|
"before": null,
|
|
"after": {
|
|
"api_key_scope": "all",
|
|
"arch": "amd64",
|
|
"auth": "token",
|
|
"connection_timeout": 120,
|
|
"dir": null,
|
|
"env": null,
|
|
"metadata": [],
|
|
"motd_file": null,
|
|
"order": null,
|
|
"os": "linux",
|
|
"resources_monitoring": [],
|
|
"shutdown_script": null,
|
|
"startup_script": null,
|
|
"startup_script_behavior": "non-blocking",
|
|
"troubleshooting_url": null
|
|
},
|
|
"after_unknown": {
|
|
"display_apps": true,
|
|
"id": true,
|
|
"init_script": true,
|
|
"metadata": [],
|
|
"resources_monitoring": [],
|
|
"token": true
|
|
},
|
|
"before_sensitive": false,
|
|
"after_sensitive": {
|
|
"display_apps": [],
|
|
"metadata": [],
|
|
"resources_monitoring": [],
|
|
"token": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"address": "coder_app.devcontainer-app",
|
|
"mode": "managed",
|
|
"type": "coder_app",
|
|
"name": "devcontainer-app",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"change": {
|
|
"actions": [
|
|
"create"
|
|
],
|
|
"before": null,
|
|
"after": {
|
|
"command": null,
|
|
"display_name": null,
|
|
"external": false,
|
|
"group": null,
|
|
"healthcheck": [],
|
|
"hidden": false,
|
|
"icon": null,
|
|
"open_in": "slim-window",
|
|
"order": null,
|
|
"share": "owner",
|
|
"slug": "devcontainer-app",
|
|
"subdomain": null,
|
|
"tooltip": null,
|
|
"url": null
|
|
},
|
|
"after_unknown": {
|
|
"agent_id": true,
|
|
"healthcheck": [],
|
|
"id": true
|
|
},
|
|
"before_sensitive": false,
|
|
"after_sensitive": {
|
|
"healthcheck": []
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"address": "coder_devcontainer.dev",
|
|
"mode": "managed",
|
|
"type": "coder_devcontainer",
|
|
"name": "dev",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"change": {
|
|
"actions": [
|
|
"create"
|
|
],
|
|
"before": null,
|
|
"after": {
|
|
"config_path": null,
|
|
"workspace_folder": "/workspace"
|
|
},
|
|
"after_unknown": {
|
|
"agent_id": true,
|
|
"id": true,
|
|
"subagent_id": true
|
|
},
|
|
"before_sensitive": false,
|
|
"after_sensitive": {}
|
|
}
|
|
},
|
|
{
|
|
"address": "coder_devcontainer.other",
|
|
"mode": "managed",
|
|
"type": "coder_devcontainer",
|
|
"name": "other",
|
|
"provider_name": "registry.terraform.io/coder/coder",
|
|
"change": {
|
|
"actions": [
|
|
"create"
|
|
],
|
|
"before": null,
|
|
"after": {
|
|
"config_path": null,
|
|
"workspace_folder": "/other"
|
|
},
|
|
"after_unknown": {
|
|
"agent_id": true,
|
|
"id": true,
|
|
"subagent_id": true
|
|
},
|
|
"before_sensitive": false,
|
|
"after_sensitive": {}
|
|
}
|
|
},
|
|
{
|
|
"address": "null_resource.dev",
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "dev",
|
|
"provider_name": "registry.terraform.io/hashicorp/null",
|
|
"change": {
|
|
"actions": [
|
|
"create"
|
|
],
|
|
"before": null,
|
|
"after": {
|
|
"triggers": null
|
|
},
|
|
"after_unknown": {
|
|
"id": true
|
|
},
|
|
"before_sensitive": false,
|
|
"after_sensitive": {}
|
|
}
|
|
},
|
|
{
|
|
"address": "null_resource.secondary",
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "secondary",
|
|
"provider_name": "registry.terraform.io/hashicorp/null",
|
|
"change": {
|
|
"actions": [
|
|
"create"
|
|
],
|
|
"before": null,
|
|
"after": {
|
|
"triggers": null
|
|
},
|
|
"after_unknown": {
|
|
"id": true
|
|
},
|
|
"before_sensitive": false,
|
|
"after_sensitive": {}
|
|
}
|
|
}
|
|
],
|
|
"configuration": {
|
|
"provider_config": {
|
|
"coder": {
|
|
"name": "coder",
|
|
"full_name": "registry.terraform.io/coder/coder",
|
|
"version_constraint": ">= 2.0.0"
|
|
},
|
|
"null": {
|
|
"name": "null",
|
|
"full_name": "registry.terraform.io/hashicorp/null"
|
|
}
|
|
},
|
|
"root_module": {
|
|
"resources": [
|
|
{
|
|
"address": "coder_agent.main",
|
|
"mode": "managed",
|
|
"type": "coder_agent",
|
|
"name": "main",
|
|
"provider_config_key": "coder",
|
|
"expressions": {
|
|
"arch": {
|
|
"constant_value": "amd64"
|
|
},
|
|
"os": {
|
|
"constant_value": "linux"
|
|
}
|
|
},
|
|
"schema_version": 1
|
|
},
|
|
{
|
|
"address": "coder_agent.secondary",
|
|
"mode": "managed",
|
|
"type": "coder_agent",
|
|
"name": "secondary",
|
|
"provider_config_key": "coder",
|
|
"expressions": {
|
|
"arch": {
|
|
"constant_value": "amd64"
|
|
},
|
|
"os": {
|
|
"constant_value": "linux"
|
|
}
|
|
},
|
|
"schema_version": 1
|
|
},
|
|
{
|
|
"address": "coder_app.devcontainer-app",
|
|
"mode": "managed",
|
|
"type": "coder_app",
|
|
"name": "devcontainer-app",
|
|
"provider_config_key": "coder",
|
|
"expressions": {
|
|
"agent_id": {
|
|
"references": [
|
|
"coder_devcontainer.dev.subagent_id",
|
|
"coder_devcontainer.dev"
|
|
]
|
|
},
|
|
"slug": {
|
|
"constant_value": "devcontainer-app"
|
|
}
|
|
},
|
|
"schema_version": 1
|
|
},
|
|
{
|
|
"address": "coder_devcontainer.dev",
|
|
"mode": "managed",
|
|
"type": "coder_devcontainer",
|
|
"name": "dev",
|
|
"provider_config_key": "coder",
|
|
"expressions": {
|
|
"agent_id": {
|
|
"references": [
|
|
"coder_agent.main.id",
|
|
"coder_agent.main"
|
|
]
|
|
},
|
|
"workspace_folder": {
|
|
"constant_value": "/workspace"
|
|
}
|
|
},
|
|
"schema_version": 1
|
|
},
|
|
{
|
|
"address": "coder_devcontainer.other",
|
|
"mode": "managed",
|
|
"type": "coder_devcontainer",
|
|
"name": "other",
|
|
"provider_config_key": "coder",
|
|
"expressions": {
|
|
"agent_id": {
|
|
"references": [
|
|
"coder_agent.main.id",
|
|
"coder_agent.main"
|
|
]
|
|
},
|
|
"workspace_folder": {
|
|
"constant_value": "/other"
|
|
}
|
|
},
|
|
"schema_version": 1
|
|
},
|
|
{
|
|
"address": "null_resource.dev",
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "dev",
|
|
"provider_config_key": "null",
|
|
"schema_version": 0,
|
|
"depends_on": [
|
|
"coder_agent.main"
|
|
]
|
|
},
|
|
{
|
|
"address": "null_resource.secondary",
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "secondary",
|
|
"provider_config_key": "null",
|
|
"schema_version": 0,
|
|
"depends_on": [
|
|
"coder_agent.secondary"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"relevant_attributes": [
|
|
{
|
|
"resource": "coder_agent.main",
|
|
"attribute": [
|
|
"id"
|
|
]
|
|
},
|
|
{
|
|
"resource": "coder_devcontainer.dev",
|
|
"attribute": [
|
|
"subagent_id"
|
|
]
|
|
}
|
|
],
|
|
"timestamp": "2026-01-21T17:22:46Z",
|
|
"applyable": true,
|
|
"complete": true,
|
|
"errored": false
|
|
}
|