Files
coder/provisioner/terraform/testdata/resources/devcontainer-resources/devcontainer-resources.tfplan.json
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

457 lines
12 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_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_env.devcontainer-env",
"mode": "managed",
"type": "coder_env",
"name": "devcontainer-env",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"name": "DEVCONTAINER_ENV",
"value": "devcontainer-value"
},
"sensitive_values": {}
},
{
"address": "coder_script.devcontainer-script",
"mode": "managed",
"type": "coder_script",
"name": "devcontainer-script",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"cron": null,
"display_name": "Devcontainer Script",
"icon": null,
"log_path": null,
"run_on_start": true,
"run_on_stop": false,
"script": "echo devcontainer",
"start_blocks_login": false,
"timeout": 0
},
"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": {}
}
]
}
},
"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_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_env.devcontainer-env",
"mode": "managed",
"type": "coder_env",
"name": "devcontainer-env",
"provider_name": "registry.terraform.io/coder/coder",
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"name": "DEVCONTAINER_ENV",
"value": "devcontainer-value"
},
"after_unknown": {
"agent_id": true,
"id": true
},
"before_sensitive": false,
"after_sensitive": {}
}
},
{
"address": "coder_script.devcontainer-script",
"mode": "managed",
"type": "coder_script",
"name": "devcontainer-script",
"provider_name": "registry.terraform.io/coder/coder",
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"cron": null,
"display_name": "Devcontainer Script",
"icon": null,
"log_path": null,
"run_on_start": true,
"run_on_stop": false,
"script": "echo devcontainer",
"start_blocks_login": false,
"timeout": 0
},
"after_unknown": {
"agent_id": true,
"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": {}
}
}
],
"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_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_env.devcontainer-env",
"mode": "managed",
"type": "coder_env",
"name": "devcontainer-env",
"provider_config_key": "coder",
"expressions": {
"agent_id": {
"references": [
"coder_devcontainer.dev.subagent_id",
"coder_devcontainer.dev"
]
},
"name": {
"constant_value": "DEVCONTAINER_ENV"
},
"value": {
"constant_value": "devcontainer-value"
}
},
"schema_version": 1
},
{
"address": "coder_script.devcontainer-script",
"mode": "managed",
"type": "coder_script",
"name": "devcontainer-script",
"provider_config_key": "coder",
"expressions": {
"agent_id": {
"references": [
"coder_devcontainer.dev.subagent_id",
"coder_devcontainer.dev"
]
},
"display_name": {
"constant_value": "Devcontainer Script"
},
"run_on_start": {
"constant_value": true
},
"script": {
"constant_value": "echo devcontainer"
}
},
"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"
]
}
]
}
},
"relevant_attributes": [
{
"resource": "coder_agent.main",
"attribute": [
"id"
]
},
{
"resource": "coder_devcontainer.dev",
"attribute": [
"subagent_id"
]
}
],
"timestamp": "2026-01-21T11:06:55Z",
"applyable": true,
"complete": true,
"errored": false
}