From 08768006b935613f7b0d9effc6b73942178fe45b Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Mon, 10 Feb 2025 15:24:00 -0600 Subject: [PATCH 1/3] chore: upgrade terraform to 1.10.5 --- .github/actions/setup-tf/action.yaml | 2 +- docs/install/offline.md | 4 +- dogfood/contents/Dockerfile | 4 +- install.sh | 2 +- provisioner/terraform/install.go | 4 +- .../calling-module/calling-module.tfplan.json | 23 +++--- .../calling-module.tfstate.json | 19 +++-- .../chaining-resources.tfplan.json | 23 +++--- .../chaining-resources.tfstate.json | 19 +++-- .../conflicting-resources.tfplan.json | 23 +++--- .../conflicting-resources.tfstate.json | 19 +++-- .../display-apps-disabled.tfplan.json | 23 +++--- .../display-apps-disabled.tfstate.json | 17 ++-- .../display-apps/display-apps.tfplan.json | 23 +++--- .../display-apps/display-apps.tfstate.json | 17 ++-- .../external-auth-providers.tfplan.json | 25 +++--- .../external-auth-providers.tfstate.json | 17 ++-- .../instance-id/instance-id.tfplan.json | 23 +++--- .../instance-id/instance-id.tfstate.json | 21 ++--- .../mapped-apps/mapped-apps.tfplan.json | 45 +++++----- .../mapped-apps/mapped-apps.tfstate.json | 37 +++++---- .../multiple-agents-multiple-apps.tfplan.json | 82 ++++++++++--------- ...multiple-agents-multiple-apps.tfstate.json | 62 +++++++------- .../multiple-agents-multiple-envs.tfplan.json | 54 ++++++------ ...multiple-agents-multiple-envs.tfstate.json | 50 +++++------ ...ltiple-agents-multiple-scripts.tfplan.json | 58 ++++++------- ...tiple-agents-multiple-scripts.tfstate.json | 50 +++++------ .../multiple-agents.tfplan.json | 72 ++++++++-------- .../multiple-agents.tfstate.json | 52 ++++++------ .../multiple-apps/multiple-apps.tfplan.json | 59 ++++++------- .../multiple-apps/multiple-apps.tfstate.json | 47 +++++------ .../resource-metadata-duplicate.tfplan.json | 31 +++---- .../resource-metadata-duplicate.tfstate.json | 29 +++---- .../resource-metadata.tfplan.json | 27 +++--- .../resource-metadata.tfstate.json | 23 +++--- .../rich-parameters-order.tfplan.json | 29 +++---- .../rich-parameters-order.tfstate.json | 21 ++--- .../rich-parameters-validation.tfplan.json | 37 +++++---- .../rich-parameters-validation.tfstate.json | 29 +++---- .../rich-parameters.tfplan.json | 45 +++++----- .../rich-parameters.tfstate.json | 37 +++++---- provisioner/terraform/testdata/version.txt | 2 +- scripts/Dockerfile.base | 2 +- 43 files changed, 668 insertions(+), 620 deletions(-) diff --git a/.github/actions/setup-tf/action.yaml b/.github/actions/setup-tf/action.yaml index c52f1138e03ca..f130bcdb7d028 100644 --- a/.github/actions/setup-tf/action.yaml +++ b/.github/actions/setup-tf/action.yaml @@ -7,5 +7,5 @@ runs: - name: Install Terraform uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2 with: - terraform_version: 1.9.8 + terraform_version: 1.10.5 terraform_wrapper: false diff --git a/docs/install/offline.md b/docs/install/offline.md index 6a41bd9437894..321fcfb392978 100644 --- a/docs/install/offline.md +++ b/docs/install/offline.md @@ -7,7 +7,7 @@ environments. However, some changes to your configuration are necessary. > offline with Kubernetes or Docker. | | Public deployments | Offline deployments | -|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Terraform binary | By default, Coder downloads Terraform binary from [releases.hashicorp.com](https://releases.hashicorp.com) | Terraform binary must be included in `PATH` for the VM or container image. [Supported versions](https://github.com/coder/coder/blob/main/provisioner/terraform/install.go#L23-L24) | | Terraform registry | Coder templates will attempt to download providers from [registry.terraform.io](https://registry.terraform.io) or [custom source addresses](https://developer.hashicorp.com/terraform/language/providers/requirements#source-addresses) specified in each template | [Custom source addresses](https://developer.hashicorp.com/terraform/language/providers/requirements#source-addresses) can be specified in each Coder template, or a custom registry/mirror can be used. More details below | | STUN | By default, Coder uses Google's public STUN server for direct workspace connections | STUN can be safely [disabled](../reference/cli/server.md#--derp-server-stun-addresses) users can still connect via [relayed connections](../admin/networking/index.md#-geo-distribution). Alternatively, you can set a [custom DERP server](../reference/cli/server.md#--derp-server-stun-addresses) | @@ -54,7 +54,7 @@ RUN mkdir -p /opt/terraform # The below step is optional if you wish to keep the existing version. # See https://github.com/coder/coder/blob/main/provisioner/terraform/install.go#L23-L24 # for supported Terraform versions. -ARG TERRAFORM_VERSION=1.9.8 +ARG TERRAFORM_VERSION=1.10.5 RUN apk update && \ apk del terraform && \ curl -LOs https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \ diff --git a/dogfood/contents/Dockerfile b/dogfood/contents/Dockerfile index 2de358c5c91e6..8c3613f59d468 100644 --- a/dogfood/contents/Dockerfile +++ b/dogfood/contents/Dockerfile @@ -195,9 +195,9 @@ RUN apt-get update --quiet && apt-get install --yes \ # Configure FIPS-compliant policies update-crypto-policies --set FIPS -# NOTE: In scripts/Dockerfile.base we specifically install Terraform version 1.9.8. +# NOTE: In scripts/Dockerfile.base we specifically install Terraform version 1.10.5. # Installing the same version here to match. -RUN wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.9.8/terraform_1.9.8_linux_amd64.zip" && \ +RUN wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.10.5/terraform_1.10.5_linux_amd64.zip" && \ unzip /tmp/terraform.zip -d /usr/local/bin && \ rm -f /tmp/terraform.zip && \ chmod +x /usr/local/bin/terraform && \ diff --git a/install.sh b/install.sh index 734fd3c44f320..931426c54c5db 100755 --- a/install.sh +++ b/install.sh @@ -273,7 +273,7 @@ EOF main() { MAINLINE=1 STABLE=0 - TERRAFORM_VERSION="1.9.8" + TERRAFORM_VERSION="1.10.5" if [ "${TRACE-}" ]; then set -x diff --git a/provisioner/terraform/install.go b/provisioner/terraform/install.go index 7f6474d022ba1..74229c8539bc0 100644 --- a/provisioner/terraform/install.go +++ b/provisioner/terraform/install.go @@ -20,10 +20,10 @@ var ( // when Terraform is not available on the system. // NOTE: Keep this in sync with the version in scripts/Dockerfile.base. // NOTE: Keep this in sync with the version in install.sh. - TerraformVersion = version.Must(version.NewVersion("1.9.8")) + TerraformVersion = version.Must(version.NewVersion("1.10.5")) minTerraformVersion = version.Must(version.NewVersion("1.1.0")) - maxTerraformVersion = version.Must(version.NewVersion("1.9.9")) // use .9 to automatically allow patch releases + maxTerraformVersion = version.Must(version.NewVersion("1.10.9")) // use .9 to automatically allow patch releases terraformMinorVersionMismatch = xerrors.New("Terraform binary minor version mismatch.") ) diff --git a/provisioner/terraform/testdata/calling-module/calling-module.tfplan.json b/provisioner/terraform/testdata/calling-module/calling-module.tfplan.json index 6be5318da7f1b..6bdd8d84eb025 100644 --- a/provisioner/terraform/testdata/calling-module/calling-module.tfplan.json +++ b/provisioner/terraform/testdata/calling-module/calling-module.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -89,14 +90,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -104,14 +107,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -200,7 +201,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 } ], "module_calls": { @@ -259,7 +260,7 @@ ] } ], - "timestamp": "2025-01-29T22:47:46Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/calling-module/calling-module.tfstate.json b/provisioner/terraform/testdata/calling-module/calling-module.tfstate.json index 73aeed2d3a68a..edacf9419b40d 100644 --- a/provisioner/terraform/testdata/calling-module/calling-module.tfstate.json +++ b/provisioner/terraform/testdata/calling-module/calling-module.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "14f0eb08-1bdb-4d48-ab20-e06584ee5b68", + "id": "e9b8432d-5407-47b5-82d4-0859088c9e1b", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "454fffe5-3c59-4a9e-80a0-0d1644ce3b24", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "63a661a4-1c4e-4495-ab78-6cfe6987517a", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -68,7 +69,7 @@ "outputs": { "script": "" }, - "random": "8389680299908922676" + "random": "1712821389824061702" }, "sensitive_values": { "inputs": {}, @@ -83,7 +84,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "8124127383117450432", + "id": "6220748043164166517", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.json b/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.json index 9f2b1d3736e6e..f793fa36fa13d 100644 --- a/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.json +++ b/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -79,14 +80,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -94,14 +97,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -177,7 +178,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.a", @@ -204,7 +205,7 @@ ] } }, - "timestamp": "2025-01-29T22:47:48Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.json b/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.json index fc6241b86e73a..cc1c30e8a09c1 100644 --- a/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.json +++ b/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "038d5038-be85-4609-bde3-56b7452e4386", + "id": "e9bcf1a7-c91a-4db9-a6bb-f89a3082ef66", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "e570d762-5584-4192-a474-be9e137b2f09", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "83e56188-ba75-488e-9933-32e2f44d1ce7", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -56,7 +57,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "690495753077748083", + "id": "1893538498646229716", "triggers": null }, "sensitive_values": {}, @@ -73,7 +74,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "3238567980725122951", + "id": "4382074484143055430", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfplan.json b/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfplan.json index f5218d0c65e0a..3c4ab9bbbd7f1 100644 --- a/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfplan.json +++ b/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -79,14 +80,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -94,14 +97,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -177,7 +178,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.first", @@ -204,7 +205,7 @@ ] } }, - "timestamp": "2025-01-29T22:47:50Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfstate.json b/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfstate.json index 44bca5b6abc30..307950e187fa4 100644 --- a/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfstate.json +++ b/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "be15a1b3-f041-4471-9dec-9784c68edb26", + "id": "354f4b93-a519-4629-84da-cc9426c352fa", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "df2580ad-59cc-48fb-bb21-40a8be5a5a66", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "daef0635-0996-4610-9025-8b9c3b7a04bc", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -56,7 +57,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "9103672483967127580", + "id": "3273523859716028364", "triggers": null }, "sensitive_values": {}, @@ -72,7 +73,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "4372402015997897970", + "id": "1330606908204006055", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfplan.json b/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfplan.json index 826ba9da95576..d1fe394716ad2 100644 --- a/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfplan.json +++ b/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,14 +26,16 @@ } ], "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { @@ -41,7 +43,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -87,14 +88,16 @@ } ], "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -104,7 +107,6 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, @@ -113,7 +115,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -187,7 +188,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev", @@ -203,7 +204,7 @@ ] } }, - "timestamp": "2025-01-29T22:47:53Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfstate.json b/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfstate.json index 1948baf7137a8..ea5ee367405d5 100644 --- a/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfstate.json +++ b/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "398e27d3-10cc-4522-9144-34658eedad0e", + "id": "7227755c-77c8-42bb-88cb-52323d915afb", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "33068dbe-54d7-45eb-bfe5-87a9756802e2", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "800fd072-a8d0-456f-81cf-5293e978578f", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -56,7 +57,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "5682617535476100233", + "id": "838322553927056753", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/display-apps/display-apps.tfplan.json b/provisioner/terraform/testdata/display-apps/display-apps.tfplan.json index 9172849c341a3..8148a4a79ea04 100644 --- a/provisioner/terraform/testdata/display-apps/display-apps.tfplan.json +++ b/provisioner/terraform/testdata/display-apps/display-apps.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,14 +26,16 @@ } ], "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { @@ -41,7 +43,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -87,14 +88,16 @@ } ], "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -104,7 +107,6 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, @@ -113,7 +115,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -187,7 +188,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev", @@ -203,7 +204,7 @@ ] } }, - "timestamp": "2025-01-29T22:47:52Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/display-apps/display-apps.tfstate.json b/provisioner/terraform/testdata/display-apps/display-apps.tfstate.json index 88e4d0f768d1e..25c62b09cbcec 100644 --- a/provisioner/terraform/testdata/display-apps/display-apps.tfstate.json +++ b/provisioner/terraform/testdata/display-apps/display-apps.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "810cdd01-a27d-442f-9e69-bdaecced8a59", + "id": "14e4d398-d5d7-46b3-a973-6bacf0b8fcb9", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "fade1b71-d52b-4ef2-bb05-961f7795bab9", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "674e1a7f-548c-4c59-9168-cfc830bbe620", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -56,7 +57,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "5174735461860530782", + "id": "5306625577114392588", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfplan.json b/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfplan.json index 654ce7464aad6..6f81a643ec1e4 100644 --- a/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfplan.json +++ b/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -67,14 +68,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -82,14 +85,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -118,7 +119,7 @@ ], "prior_state": { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -182,7 +183,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev", @@ -227,7 +228,7 @@ ] } }, - "timestamp": "2025-01-29T22:47:55Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfstate.json b/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfstate.json index 733c9dd3acdb2..9f046421a344d 100644 --- a/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfstate.json +++ b/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -38,7 +38,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -54,17 +54,19 @@ } ], "env": null, - "id": "7ead336b-d366-4991-b38d-bdb8b9333ae9", + "id": "0a08db63-5003-45f3-83f8-1ef57a51daf4", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "a3d2c620-f065-4b29-ae58-370292e787d4", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "988251ef-e44b-44ab-8ea1-636a823626b0", "troubleshooting_url": null }, "sensitive_values": { @@ -72,7 +74,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -84,7 +85,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "3060850815800759131", + "id": "6597814393556158080", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/instance-id/instance-id.tfplan.json b/provisioner/terraform/testdata/instance-id/instance-id.tfplan.json index 04e6c6f0098d7..996ddcdbc58e2 100644 --- a/provisioner/terraform/testdata/instance-id/instance-id.tfplan.json +++ b/provisioner/terraform/testdata/instance-id/instance-id.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "google-instance-identity", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -79,14 +80,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -94,14 +97,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -181,7 +182,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_agent_instance.main", @@ -224,7 +225,7 @@ ] } ], - "timestamp": "2025-01-29T22:47:57Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/instance-id/instance-id.tfstate.json b/provisioner/terraform/testdata/instance-id/instance-id.tfstate.json index e884830606a23..4f9d9b72e494b 100644 --- a/provisioner/terraform/testdata/instance-id/instance-id.tfstate.json +++ b/provisioner/terraform/testdata/instance-id/instance-id.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "google-instance-identity", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "c6e99a38-f10b-4242-a7c6-bd9186008b9d", + "id": "7eeea0f1-4d68-4779-9000-856ca09eac6a", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "ecddacca-df83-4dd2-b6cb-71f439e9e5f5", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "3766693b-d30b-4a0a-85ef-aa07429ea814", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -56,8 +57,8 @@ "provider_name": "registry.terraform.io/coder/coder", "schema_version": 0, "values": { - "agent_id": "c6e99a38-f10b-4242-a7c6-bd9186008b9d", - "id": "0ed215f9-07b0-455f-828d-faee5f63ea93", + "agent_id": "7eeea0f1-4d68-4779-9000-856ca09eac6a", + "id": "b54d5472-df9c-46b3-a11c-d6abb0c0ac4a", "instance_id": "example" }, "sensitive_values": {}, @@ -73,7 +74,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "1340003819945612525", + "id": "650207462661444552", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfplan.json b/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfplan.json index 7dd1dc173febb..a085ac6f7f4cd 100644 --- a/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfplan.json +++ b/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -41,16 +42,16 @@ "name": "apps", "index": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "command": null, "display_name": "app1", "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -67,16 +68,16 @@ "name": "apps", "index": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "command": null, "display_name": "app2", "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app2", "subdomain": null, @@ -119,14 +120,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -134,14 +137,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -163,10 +164,10 @@ "display_name": "app1", "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -200,10 +201,10 @@ "display_name": "app2", "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app2", "subdomain": null, @@ -270,7 +271,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_app.apps", @@ -297,7 +298,7 @@ ] } }, - "schema_version": 1, + "schema_version": 0, "for_each_expression": { "references": [ "local.apps_map" @@ -326,7 +327,7 @@ ] } ], - "timestamp": "2025-01-29T22:47:59Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfstate.json b/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfstate.json index fb32d22e2c358..3aca2d88ae416 100644 --- a/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfstate.json +++ b/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "18098e15-2e8b-4c83-9362-0823834ae628", + "id": "df2afa53-716e-46f8-9c79-f3e5353098bb", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "59691c9e-bf9e-4c93-9768-ba3582c68727", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "ec24a01c-e5a0-43b8-8c3f-d2afb565180e", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -55,18 +56,18 @@ "name": "apps", "index": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "18098e15-2e8b-4c83-9362-0823834ae628", + "agent_id": "df2afa53-716e-46f8-9c79-f3e5353098bb", "command": null, "display_name": "app1", "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "id": "8f031ab5-e051-4eff-9f7e-233f5825c3fd", - "open_in": "slim-window", + "id": "9a9196f9-da25-4166-9622-e571366709e0", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -86,18 +87,18 @@ "name": "apps", "index": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "18098e15-2e8b-4c83-9362-0823834ae628", + "agent_id": "df2afa53-716e-46f8-9c79-f3e5353098bb", "command": null, "display_name": "app2", "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "id": "5462894e-7fdc-4fd0-8715-7829e53efea2", - "open_in": "slim-window", + "id": "b9b5d49a-abe5-452b-84a2-8537b5e9a1f2", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app2", "subdomain": null, @@ -118,7 +119,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "2699316377754222096", + "id": "6874225771934562777", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfplan.json b/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfplan.json index 69600fed24390..c731bf6c62987 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfplan.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -40,27 +41,28 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -70,16 +72,16 @@ "type": "coder_app", "name": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "command": null, "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -95,7 +97,7 @@ "type": "coder_app", "name": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "command": null, "display_name": null, @@ -107,10 +109,10 @@ "url": "http://localhost:13337/healthz" } ], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -128,16 +130,16 @@ "type": "coder_app", "name": "app3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "command": null, "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -192,14 +194,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -207,14 +211,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -236,14 +238,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -251,14 +255,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -279,10 +281,10 @@ "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -321,10 +323,10 @@ "url": "http://localhost:13337/healthz" } ], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -361,10 +363,10 @@ "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -452,7 +454,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_agent.dev2", @@ -468,7 +470,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_app.app1", @@ -487,7 +489,7 @@ "constant_value": "app1" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_app.app2", @@ -522,7 +524,7 @@ "constant_value": true } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_app.app3", @@ -544,7 +546,7 @@ "constant_value": false } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev1", @@ -573,19 +575,19 @@ }, "relevant_attributes": [ { - "resource": "coder_agent.dev1", + "resource": "coder_agent.dev2", "attribute": [ "id" ] }, { - "resource": "coder_agent.dev2", + "resource": "coder_agent.dev1", "attribute": [ "id" ] } ], - "timestamp": "2025-01-29T22:48:03Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfstate.json b/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfstate.json index db2617701b508..6bd7f6d0ac357 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfstate.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "00794e64-40d3-43df-885a-4b1cc5f5b965", + "id": "760def15-3a41-4b82-8960-26c89f27494a", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "7c0a6e5e-dd2c-46e4-a5f5-f71aae7515c3", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "51ebd4ea-d208-4ee3-a8f7-14d5030313b8", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -54,7 +55,7 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -70,17 +71,19 @@ } ], "env": null, - "id": "1b8ddc14-25c2-4eab-b282-71b12d45de73", + "id": "a6c8d4d4-1402-4b06-9244-92a30ac88528", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "39497aa1-11a1-40c0-854d-554c2e27ef77", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "0ac63d9d-9bc0-45c5-bf5b-5367e9a6949d", "troubleshooting_url": null }, "sensitive_values": { @@ -88,7 +91,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -98,18 +100,18 @@ "type": "coder_app", "name": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "00794e64-40d3-43df-885a-4b1cc5f5b965", + "agent_id": "760def15-3a41-4b82-8960-26c89f27494a", "command": null, "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "id": "c9cf036f-5fd9-408a-8c28-90cde4c5b0cf", - "open_in": "slim-window", + "id": "0de8ba21-b451-44ea-8f2b-642cbb1c4ca3", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -128,9 +130,9 @@ "type": "coder_app", "name": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "00794e64-40d3-43df-885a-4b1cc5f5b965", + "agent_id": "760def15-3a41-4b82-8960-26c89f27494a", "command": null, "display_name": null, "external": false, @@ -141,11 +143,11 @@ "url": "http://localhost:13337/healthz" } ], - "hidden": false, "icon": null, - "id": "e40999b2-8ceb-4e35-962b-c0b7b95c8bc8", - "open_in": "slim-window", + "id": "52369592-30ce-40a4-bc39-3a1850ae0836", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -166,18 +168,18 @@ "type": "coder_app", "name": "app3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "1b8ddc14-25c2-4eab-b282-71b12d45de73", + "agent_id": "a6c8d4d4-1402-4b06-9244-92a30ac88528", "command": null, "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "id": "4e61c245-271a-41e1-9a37-2badf68bf5cd", - "open_in": "slim-window", + "id": "5ad62b47-80ff-450b-a1ca-06fdb4b2eb32", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -198,7 +200,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "7796235346668423309", + "id": "8161183178069686641", "triggers": null }, "sensitive_values": {}, @@ -214,7 +216,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "8353198974918613541", + "id": "1227420809291272658", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfplan.json b/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfplan.json index da3f19c548339..c4aeff1206949 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfplan.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -40,27 +41,28 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -70,7 +72,7 @@ "type": "coder_env", "name": "env1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "name": "ENV_1", "value": "Env 1" @@ -83,7 +85,7 @@ "type": "coder_env", "name": "env2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "name": "ENV_2", "value": "Env 2" @@ -96,7 +98,7 @@ "type": "coder_env", "name": "env3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "name": "ENV_3", "value": "Env 3" @@ -148,14 +150,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -163,14 +167,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -192,14 +194,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -207,14 +211,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -359,7 +361,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_agent.dev2", @@ -375,7 +377,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_env.env1", @@ -397,7 +399,7 @@ "constant_value": "Env 1" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_env.env2", @@ -419,7 +421,7 @@ "constant_value": "Env 2" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_env.env3", @@ -441,7 +443,7 @@ "constant_value": "Env 3" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev1", @@ -482,7 +484,7 @@ ] } ], - "timestamp": "2025-01-29T22:48:05Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfstate.json b/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfstate.json index 6b2f13b3e8ae8..537486365841e 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfstate.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "f1398cbc-4e67-4a0e-92b7-15dc33221872", + "id": "2879ad6a-79d9-4beb-97ad-46d8bdc5ad66", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "acbbabee-e370-4aba-b876-843fb10201e8", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "e3513fbd-5a33-4d35-aa6b-b286fe09e818", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -54,7 +55,7 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -70,17 +71,19 @@ } ], "env": null, - "id": "ea44429d-fc3c-4ea6-ba23-a997dc66cad8", + "id": "608deb5a-a27c-4746-afe4-d904a0d47eb8", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "51fea695-82dd-4ccd-bf25-2c55a82b4851", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "cd5ab435-e8d9-4975-b7ad-9afce46c661d", "troubleshooting_url": null }, "sensitive_values": { @@ -88,7 +91,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -98,10 +100,10 @@ "type": "coder_env", "name": "env1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "f1398cbc-4e67-4a0e-92b7-15dc33221872", - "id": "f8f7b3f7-5c4b-47b9-959e-32d2044329e3", + "agent_id": "2879ad6a-79d9-4beb-97ad-46d8bdc5ad66", + "id": "67553ccc-a032-4ccd-baf6-99c9656be136", "name": "ENV_1", "value": "Env 1" }, @@ -116,10 +118,10 @@ "type": "coder_env", "name": "env2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "f1398cbc-4e67-4a0e-92b7-15dc33221872", - "id": "b7171d98-09c9-4bc4-899d-4b7343cd86ca", + "agent_id": "2879ad6a-79d9-4beb-97ad-46d8bdc5ad66", + "id": "6fb8f5d4-57cf-4cd6-b088-9517b7a326c5", "name": "ENV_2", "value": "Env 2" }, @@ -134,10 +136,10 @@ "type": "coder_env", "name": "env3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "ea44429d-fc3c-4ea6-ba23-a997dc66cad8", - "id": "84021f25-1736-4884-8e5c-553e9c1f6fa6", + "agent_id": "608deb5a-a27c-4746-afe4-d904a0d47eb8", + "id": "b1c8d9ca-3a51-4d41-86ef-acb20b06ea56", "name": "ENV_3", "value": "Env 3" }, @@ -154,7 +156,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "4901314428677246063", + "id": "4033768315452267294", "triggers": null }, "sensitive_values": {}, @@ -170,7 +172,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "3203010350140581146", + "id": "6791780166282987042", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfplan.json b/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfplan.json index 7724005431a92..e0401fa00e360 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfplan.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -40,27 +41,28 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -70,7 +72,7 @@ "type": "coder_script", "name": "script1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "cron": null, "display_name": "Foobar Script 1", @@ -90,7 +92,7 @@ "type": "coder_script", "name": "script2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "cron": null, "display_name": "Foobar Script 2", @@ -110,7 +112,7 @@ "type": "coder_script", "name": "script3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "cron": null, "display_name": "Foobar Script 3", @@ -169,14 +171,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -184,14 +188,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -213,14 +215,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -228,14 +232,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -401,7 +403,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_agent.dev2", @@ -417,7 +419,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_script.script1", @@ -442,7 +444,7 @@ "constant_value": "echo foobar 1" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_script.script2", @@ -467,7 +469,7 @@ "constant_value": "echo foobar 2" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_script.script3", @@ -492,7 +494,7 @@ "constant_value": "echo foobar 3" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev1", @@ -521,19 +523,19 @@ }, "relevant_attributes": [ { - "resource": "coder_agent.dev2", + "resource": "coder_agent.dev1", "attribute": [ "id" ] }, { - "resource": "coder_agent.dev1", + "resource": "coder_agent.dev2", "attribute": [ "id" ] } ], - "timestamp": "2025-01-29T22:48:08Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfstate.json b/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfstate.json index c5db3c24d2f1e..c8855a06e4129 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfstate.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "bd762939-8952-4ac7-a9e5-618ec420b518", + "id": "468a4604-2663-4707-855d-3368c8d29bb8", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "f86127e8-2852-4c02-9f07-c376ec04318f", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "73a3a250-398b-4d19-804e-7d135200b449", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -54,7 +55,7 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -70,17 +71,19 @@ } ], "env": null, - "id": "60244093-3c9d-4655-b34f-c4713f7001c1", + "id": "0e197ffe-f7b8-4711-80bc-84ae49524301", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "cad61f70-873f-440c-ad1c-9d34be2e19c4", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "0662c49b-7d54-4844-988a-28a9b1258d8a", "troubleshooting_url": null }, "sensitive_values": { @@ -88,7 +91,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -98,13 +100,13 @@ "type": "coder_script", "name": "script1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "bd762939-8952-4ac7-a9e5-618ec420b518", + "agent_id": "468a4604-2663-4707-855d-3368c8d29bb8", "cron": null, "display_name": "Foobar Script 1", "icon": null, - "id": "b34b6cd5-e85d-41c8-ad92-eaaceb2404cb", + "id": "4d40dadf-5970-45c8-9ccc-f3e03a34e5c6", "log_path": null, "run_on_start": true, "run_on_stop": false, @@ -123,13 +125,13 @@ "type": "coder_script", "name": "script2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "bd762939-8952-4ac7-a9e5-618ec420b518", + "agent_id": "468a4604-2663-4707-855d-3368c8d29bb8", "cron": null, "display_name": "Foobar Script 2", "icon": null, - "id": "d6f4e24c-3023-417d-b9be-4c83dbdf4802", + "id": "d22729a1-1894-4734-8e12-5726ecf44ca3", "log_path": null, "run_on_start": true, "run_on_stop": false, @@ -148,13 +150,13 @@ "type": "coder_script", "name": "script3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "60244093-3c9d-4655-b34f-c4713f7001c1", + "agent_id": "0e197ffe-f7b8-4711-80bc-84ae49524301", "cron": null, "display_name": "Foobar Script 3", "icon": null, - "id": "a19e9106-5eb5-4941-b6ae-72a7724efdf0", + "id": "3bc50212-25f2-4b09-b7c4-a8a5c4c3509a", "log_path": null, "run_on_start": true, "run_on_stop": false, @@ -175,7 +177,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "8576645433635584827", + "id": "8074140607597719511", "triggers": null }, "sensitive_values": {}, @@ -191,7 +193,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "1280398780322015606", + "id": "3783603173687328893", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfplan.json b/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfplan.json index 201e09ad767b2..3c7451065d947 100644 --- a/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfplan.json +++ b/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -40,27 +41,28 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 1, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": "/etc/motd", "order": null, "os": "darwin", - "resources_monitoring": [], "shutdown_script": "echo bye bye", + "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "non-blocking", + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -70,27 +72,28 @@ "type": "coder_agent", "name": "dev3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "arm64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "blocking", + "startup_script_timeout": 300, "troubleshooting_url": "https://coder.com/troubleshoot" }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -100,27 +103,28 @@ "type": "coder_agent", "name": "dev4", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -157,14 +161,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -172,14 +178,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -201,14 +205,16 @@ "connection_timeout": 1, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": "/etc/motd", "order": null, "os": "darwin", - "resources_monitoring": [], "shutdown_script": "echo bye bye", + "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "non-blocking", + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -216,14 +222,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -245,14 +249,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "blocking", + "startup_script_timeout": 300, "troubleshooting_url": "https://coder.com/troubleshoot" }, "after_unknown": { @@ -260,14 +266,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -289,14 +293,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -304,14 +310,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -366,7 +370,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_agent.dev2", @@ -394,7 +398,7 @@ "constant_value": "non-blocking" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_agent.dev3", @@ -416,7 +420,7 @@ "constant_value": "https://coder.com/troubleshoot" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_agent.dev4", @@ -432,7 +436,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev", @@ -451,7 +455,7 @@ ] } }, - "timestamp": "2025-01-29T22:48:01Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfstate.json b/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfstate.json index 53335cffd6582..57f5a8ed2ff0e 100644 --- a/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfstate.json +++ b/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "215a9369-35c9-4abe-b1c0-3eb3ab1c1922", + "id": "99e72d2f-85e4-4ede-8e3f-5bdc28e7ee2b", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "3fdd733c-b02e-4d81-a032-7c8d7ee3dcd8", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "ba12ed5a-5a41-4a02-9271-4a48f4db2a15", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -54,7 +55,7 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -70,17 +71,19 @@ } ], "env": null, - "id": "b79acfba-d148-4940-80aa-0c72c037a3ed", + "id": "146319bc-36ac-4b6e-91e9-3c6eb859ec58", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": "/etc/motd", "order": null, "os": "darwin", - "resources_monitoring": [], "shutdown_script": "echo bye bye", + "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "non-blocking", - "token": "e841a152-a794-4b05-9818-95e7440d402d", + "startup_script_timeout": 300, + "token": "47114bab-3278-4787-bff6-76f68c70bd22", "troubleshooting_url": null }, "sensitive_values": { @@ -88,7 +91,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -98,7 +100,7 @@ "type": "coder_agent", "name": "dev3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "arm64", "auth": "token", @@ -114,17 +116,19 @@ } ], "env": null, - "id": "4e863395-523b-443a-83c2-ab27e42a06b2", + "id": "5a2e1518-b91f-4341-91f6-7ed1922c8f31", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "blocking", - "token": "ee0a5e1d-879e-4bff-888e-6cf94533f0bd", + "startup_script_timeout": 300, + "token": "406634fa-2b7e-449a-88a2-bf4807f5b0a7", "troubleshooting_url": "https://coder.com/troubleshoot" }, "sensitive_values": { @@ -132,7 +136,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -142,7 +145,7 @@ "type": "coder_agent", "name": "dev4", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -158,17 +161,19 @@ } ], "env": null, - "id": "611c43f5-fa8f-4641-9b5c-a58a8945caa1", + "id": "02dd7b21-4b8e-42d8-9cb4-9ce08c8fe92a", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "2d2669c7-6385-4ce8-8948-e4b24db45132", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "0bff8fe6-a940-488a-aa00-0a6b2b07cd9e", "troubleshooting_url": null }, "sensitive_values": { @@ -176,7 +181,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -188,7 +192,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "5237006672454822031", + "id": "5771392311174655440", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfplan.json b/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfplan.json index d5d555e057751..1561d582c049d 100644 --- a/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfplan.json +++ b/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -40,16 +41,16 @@ "type": "coder_app", "name": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "command": null, "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -65,7 +66,7 @@ "type": "coder_app", "name": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "command": null, "display_name": null, @@ -77,10 +78,10 @@ "url": "http://localhost:13337/healthz" } ], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -98,16 +99,16 @@ "type": "coder_app", "name": "app3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "command": null, "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -150,14 +151,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -165,14 +168,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -193,10 +194,10 @@ "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -235,10 +236,10 @@ "url": "http://localhost:13337/healthz" } ], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -275,10 +276,10 @@ "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "open_in": "slim-window", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -345,7 +346,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_app.app1", @@ -364,7 +365,7 @@ "constant_value": "app1" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_app.app2", @@ -399,7 +400,7 @@ "constant_value": true } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_app.app3", @@ -421,7 +422,7 @@ "constant_value": false } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev", @@ -445,7 +446,7 @@ ] } ], - "timestamp": "2025-01-29T22:48:10Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfstate.json b/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfstate.json index 9bad98304438c..af43ef693419e 100644 --- a/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfstate.json +++ b/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,17 +26,19 @@ } ], "env": null, - "id": "cae4d590-8332-45b6-9453-e0151ca4f219", + "id": "f56f60c0-3136-4973-807c-a504bc4dfa61", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "6db086ba-440b-4e66-8803-80e021cda61a", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "f56dd2f3-3a7b-4377-9e55-5d57c9002ccf", "troubleshooting_url": null }, "sensitive_values": { @@ -44,7 +46,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -54,18 +55,18 @@ "type": "coder_app", "name": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "cae4d590-8332-45b6-9453-e0151ca4f219", + "agent_id": "f56f60c0-3136-4973-807c-a504bc4dfa61", "command": null, "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "id": "64803468-4ec4-49fe-beb7-e65eaf8e01ca", - "open_in": "slim-window", + "id": "bb40f902-a1eb-4116-9b6f-3155ffb054e2", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -84,9 +85,9 @@ "type": "coder_app", "name": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "cae4d590-8332-45b6-9453-e0151ca4f219", + "agent_id": "f56f60c0-3136-4973-807c-a504bc4dfa61", "command": null, "display_name": null, "external": false, @@ -97,11 +98,11 @@ "url": "http://localhost:13337/healthz" } ], - "hidden": false, "icon": null, - "id": "df3f07ab-1796-41c9-8e7d-b957dca031d4", - "open_in": "slim-window", + "id": "456f853f-4569-4a29-b01a-956413370d4c", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -122,18 +123,18 @@ "type": "coder_app", "name": "app3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { - "agent_id": "cae4d590-8332-45b6-9453-e0151ca4f219", + "agent_id": "f56f60c0-3136-4973-807c-a504bc4dfa61", "command": null, "display_name": null, "external": false, "healthcheck": [], - "hidden": false, "icon": null, - "id": "fdb06774-4140-42ef-989b-12b98254b27c", - "open_in": "slim-window", + "id": "d6203d40-8b2b-4673-90e6-5affe8376284", + "name": null, "order": null, + "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -154,7 +155,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "8206837964247342986", + "id": "3449083001957036839", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfplan.json b/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfplan.json index 6354226c4cbfc..6b73f97951cc6 100644 --- a/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfplan.json +++ b/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,13 +10,14 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -30,10 +31,11 @@ "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { @@ -41,7 +43,6 @@ "metadata": [ {} ], - "resources_monitoring": [], "token": true } }, @@ -51,7 +52,7 @@ "type": "coder_metadata", "name": "about_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "daily_cost": 29, "hide": true, @@ -82,7 +83,7 @@ "type": "coder_metadata", "name": "other_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "daily_cost": 20, "hide": true, @@ -134,6 +135,7 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -147,10 +149,11 @@ "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -160,7 +163,6 @@ "metadata": [ {} ], - "resources_monitoring": [], "token": true }, "before_sensitive": false, @@ -169,7 +171,6 @@ "metadata": [ {} ], - "resources_monitoring": [], "token": true } } @@ -332,7 +333,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_metadata.about_info", @@ -372,7 +373,7 @@ ] } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_metadata.other_info", @@ -407,7 +408,7 @@ ] } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.about", @@ -431,7 +432,7 @@ ] } ], - "timestamp": "2025-01-29T22:48:14Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfstate.json b/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfstate.json index 82eed92f364a8..1865d3a6800c2 100644 --- a/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfstate.json +++ b/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,8 +26,9 @@ } ], "env": null, - "id": "b3257d67-247c-4fc6-92a8-fc997501a0e1", + "id": "23c87093-d384-4b96-899d-6704712e4219", "init_script": "", + "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -41,11 +42,12 @@ "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "ac3563fb-3069-4919-b076-6687c765772b", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "58c170c1-c49e-45db-b043-8cbc8b3db075", "troubleshooting_url": null }, "sensitive_values": { @@ -55,7 +57,6 @@ "metadata": [ {} ], - "resources_monitoring": [], "token": true } }, @@ -65,12 +66,12 @@ "type": "coder_metadata", "name": "about_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "daily_cost": 29, "hide": true, "icon": "/icon/server.svg", - "id": "fcd81afa-64ad-45e3-b000-31d1b19df922", + "id": "576d6729-a5c0-4bf8-a3b5-0c5f780a69f8", "item": [ { "is_null": false, @@ -85,7 +86,7 @@ "value": "" } ], - "resource_id": "8033209281634385030" + "resource_id": "1757927004245485954" }, "sensitive_values": { "item": [ @@ -104,12 +105,12 @@ "type": "coder_metadata", "name": "other_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "daily_cost": 20, "hide": true, "icon": "/icon/server.svg", - "id": "186819f3-a92f-4785-9ee4-d79f57711f63", + "id": "5db76e1b-8a13-4a7d-8b43-3b42c9f8bd31", "item": [ { "is_null": false, @@ -118,7 +119,7 @@ "value": "world" } ], - "resource_id": "8033209281634385030" + "resource_id": "1757927004245485954" }, "sensitive_values": { "item": [ @@ -138,7 +139,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "8033209281634385030", + "id": "1757927004245485954", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfplan.json b/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfplan.json index fd252c9adb16e..242387765b956 100644 --- a/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfplan.json +++ b/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,13 +10,14 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -30,10 +31,11 @@ "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { @@ -41,7 +43,6 @@ "metadata": [ {} ], - "resources_monitoring": [], "token": true } }, @@ -51,7 +52,7 @@ "type": "coder_metadata", "name": "about_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "daily_cost": 29, "hide": true, @@ -121,6 +122,7 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -134,10 +136,11 @@ "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -147,7 +150,6 @@ "metadata": [ {} ], - "resources_monitoring": [], "token": true }, "before_sensitive": false, @@ -156,7 +158,6 @@ "metadata": [ {} ], - "resources_monitoring": [], "token": true } } @@ -300,7 +301,7 @@ "constant_value": "linux" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "coder_metadata.about_info", @@ -359,7 +360,7 @@ ] } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.about", @@ -383,7 +384,7 @@ ] } ], - "timestamp": "2025-01-29T22:48:12Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfstate.json b/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfstate.json index a0838cc561888..6b3b898313fe4 100644 --- a/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfstate.json +++ b/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "amd64", "auth": "token", @@ -26,8 +26,9 @@ } ], "env": null, - "id": "066d91d2-860a-4a44-9443-9eaf9315729b", + "id": "4a421808-8453-45e7-b3b2-a5fa26cec189", "init_script": "", + "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -41,11 +42,12 @@ "motd_file": null, "order": null, "os": "linux", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "9b6cc6dd-0e02-489f-b651-7a01804c406f", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "7e044d87-c9ec-4f2c-8418-20b486dcb18a", "troubleshooting_url": null }, "sensitive_values": { @@ -55,7 +57,6 @@ "metadata": [ {} ], - "resources_monitoring": [], "token": true } }, @@ -65,12 +66,12 @@ "type": "coder_metadata", "name": "about_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "daily_cost": 29, "hide": true, "icon": "/icon/server.svg", - "id": "fa791d91-9718-420e-9fa8-7a02e7af1563", + "id": "2ff2535e-f72d-421c-ba12-6b41375ac1a2", "item": [ { "is_null": false, @@ -97,7 +98,7 @@ "value": "squirrel" } ], - "resource_id": "2710066198333857753" + "resource_id": "6049201702287328788" }, "sensitive_values": { "item": [ @@ -120,7 +121,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "2710066198333857753", + "id": "6049201702287328788", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfplan.json b/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfplan.json index 95fb198c1eb82..d9d07b61c88f6 100644 --- a/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfplan.json +++ b/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "arm64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -67,14 +68,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -82,14 +85,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -118,7 +119,7 @@ ], "prior_state": { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -135,7 +136,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "e8485920-025a-4c2c-b018-722f61b64347", + "id": "f6647ba9-609d-4550-b793-c2f133469f5d", "mutable": false, "name": "Example", "option": null, @@ -162,7 +163,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "6156655b-f893-4eba-914e-e87414f4bf7e", + "id": "833e825e-2c0f-4926-a43d-424350dd6c06", "mutable": false, "name": "Sample", "option": null, @@ -208,7 +209,7 @@ "constant_value": "windows" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev", @@ -268,7 +269,7 @@ ] } }, - "timestamp": "2025-01-29T22:48:18Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfstate.json b/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfstate.json index 2cc48c837a1d2..b98f3c92f4fc2 100644 --- a/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfstate.json +++ b/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -17,7 +17,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "4b774ce8-1e9f-4721-8a14-05efd3eb2dab", + "id": "32cfe291-cc59-40d2-b803-c964ef844de5", "mutable": false, "name": "Example", "option": null, @@ -44,7 +44,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "447ae720-c046-452e-8d2c-1b5d4060b798", + "id": "27104b66-f6d8-48f4-b7ae-71c43cfb4041", "mutable": false, "name": "Sample", "option": null, @@ -64,7 +64,7 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "arm64", "auth": "token", @@ -80,17 +80,19 @@ } ], "env": null, - "id": "b8d637c2-a19c-479c-b3e2-374f15ce37c3", + "id": "d6b34cce-30b1-492a-bd29-711b6ddc7517", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "52ce8a0d-12c9-40b5-9f86-dc6240b98d5f", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "0c357437-59e0-47dc-affb-ef54ba3d7108", "troubleshooting_url": null }, "sensitive_values": { @@ -98,7 +100,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -110,7 +111,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "769369130050936586", + "id": "8977917482017004077", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfplan.json b/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfplan.json index 691c168418111..337d0ce71cbe6 100644 --- a/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfplan.json +++ b/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "arm64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -67,14 +68,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -82,14 +85,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -118,7 +119,7 @@ ], "prior_state": { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -135,7 +136,7 @@ "display_name": null, "ephemeral": true, "icon": null, - "id": "30116bcb-f109-4807-be06-666a60b6cbb2", + "id": "b8837281-b791-4ae7-9d94-d3cab9160882", "mutable": true, "name": "number_example", "option": null, @@ -162,7 +163,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "755395f4-d163-4b90-a8f4-e7ae24e17dd0", + "id": "232d3f50-e65b-4f2f-a7c6-fb3d786eddeb", "mutable": false, "name": "number_example_max", "option": null, @@ -201,7 +202,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "dec9fa47-a252-4eb7-868b-10d0fe7bad57", + "id": "390a692e-3ec1-47ab-8996-95b14f1ecb74", "mutable": false, "name": "number_example_max_zero", "option": null, @@ -240,7 +241,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "57107f82-107b-484d-8491-0787f051dca7", + "id": "57d63acc-9aa8-4d98-bca7-22334b1377d8", "mutable": false, "name": "number_example_min", "option": null, @@ -279,7 +280,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "c21a61f4-26e0-49bb-99c8-56240433c21b", + "id": "18d4cb51-8e94-466b-8a84-d1155efd9d98", "mutable": false, "name": "number_example_min_max", "option": null, @@ -318,7 +319,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "4894f5cc-f4e6-4a86-bdfa-36c9d3f8f1a3", + "id": "216dc758-c284-49bc-a19e-5c06cd5757f5", "mutable": false, "name": "number_example_min_zero", "option": null, @@ -376,7 +377,7 @@ "constant_value": "windows" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev", @@ -550,7 +551,7 @@ ] } }, - "timestamp": "2025-01-29T22:48:20Z", + "timestamp": "2025-02-10T21:13:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfstate.json b/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfstate.json index 1ad55291deaab..5b31b360c0357 100644 --- a/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfstate.json +++ b/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -17,7 +17,7 @@ "display_name": null, "ephemeral": true, "icon": null, - "id": "9b5bb411-bfe5-471a-8f2d-9fcc8c17b616", + "id": "7470533c-7455-4995-97b1-bceacd004850", "mutable": true, "name": "number_example", "option": null, @@ -44,7 +44,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "2ebaf3ec-9272-48f4-981d-09485ae7960e", + "id": "ff24de05-16de-4264-9dfe-d67c959a223b", "mutable": false, "name": "number_example_max", "option": null, @@ -83,7 +83,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "d05a833c-d0ca-4f22-8b80-40851c111b61", + "id": "4db6df0b-00d2-4033-9319-5bee3361d48d", "mutable": false, "name": "number_example_max_zero", "option": null, @@ -122,7 +122,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "de0cd614-72b3-4404-80a1-e3c780823fc9", + "id": "38994145-a432-41f4-af9b-d7a20719ce7c", "mutable": false, "name": "number_example_min", "option": null, @@ -161,7 +161,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "66eae3e1-9bb5-44f8-8f15-2b400628d0e7", + "id": "340d2cc3-b859-4fa0-838d-1710fe8362a3", "mutable": false, "name": "number_example_min_max", "option": null, @@ -200,7 +200,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "d24d37f9-5a91-4c7f-9915-bfc10f6d353d", + "id": "3a196966-9aa3-4020-8370-111290c45aeb", "mutable": false, "name": "number_example_min_zero", "option": null, @@ -232,7 +232,7 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "arm64", "auth": "token", @@ -248,17 +248,19 @@ } ], "env": null, - "id": "81170f06-8f49-43fb-998f-dc505a29632c", + "id": "74d9ae8b-dd7b-4455-a84e-a98e01599125", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "f8433068-1acc-4225-94c0-725f86cdc002", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "2c59f054-2857-4878-b7a5-bccda4c9a86b", "troubleshooting_url": null }, "sensitive_values": { @@ -266,7 +268,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -278,7 +279,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "3641782836917385715", + "id": "4058043459007775274", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfplan.json b/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfplan.json index 387be7249d0ef..c20daa7105d4b 100644 --- a/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfplan.json +++ b/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -10,27 +10,28 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "arm64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -67,14 +68,16 @@ "connection_timeout": 120, "dir": null, "env": null, + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", + "startup_script_behavior": null, + "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -82,14 +85,12 @@ "id": true, "init_script": true, "metadata": [], - "resources_monitoring": [], "token": true }, "before_sensitive": false, "after_sensitive": { "display_apps": [], "metadata": [], - "resources_monitoring": [], "token": true } } @@ -118,7 +119,7 @@ ], "prior_state": { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -135,7 +136,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "72f11f9b-8c7f-4e4a-a207-f080b114862b", + "id": "b8e482c3-e55e-4587-abb1-a0db57b0f856", "mutable": false, "name": "Example", "option": [ @@ -179,7 +180,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "b154b8a7-d31f-46f7-b876-e5bfdf50950c", + "id": "c0b429f3-8621-422a-8655-27727b7b74f4", "mutable": false, "name": "number_example", "option": null, @@ -206,7 +207,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "8199f88e-8b73-4385-bbb2-315182f753ef", + "id": "e0f9fa03-2392-4915-8ecb-a23fc612b448", "mutable": false, "name": "number_example_max_zero", "option": null, @@ -245,7 +246,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "110c995d-46d7-4277-8f57-a3d3d42733c3", + "id": "cedeb060-be8d-4ba2-8b71-efeff24076be", "mutable": false, "name": "number_example_min_max", "option": null, @@ -284,7 +285,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "e7a1f991-48a8-44c5-8a5c-597db8539cb7", + "id": "beae7c42-5723-4224-80c4-6d507613d32a", "mutable": false, "name": "number_example_min_zero", "option": null, @@ -323,7 +324,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "27d12cdf-da7e-466b-907a-4824920305da", + "id": "e77e3fca-8635-44d3-b3b0-7077dbcaf485", "mutable": false, "name": "Sample", "option": null, @@ -354,7 +355,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "1242389a-5061-482a-8274-410174fb3fc0", + "id": "faef5893-f4a7-4c82-bc7c-2b528adf9164", "mutable": true, "name": "First parameter from module", "option": null, @@ -381,7 +382,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "72418f70-4e3c-400f-9a7d-bf3467598deb", + "id": "d702a904-19e9-4e67-9bb9-744f440f1cd7", "mutable": true, "name": "Second parameter from module", "option": null, @@ -413,7 +414,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "9b4b60d8-21bb-4d52-910a-536355e9a85f", + "id": "9252f5d4-b66b-45b4-ba7a-3003423bb7f9", "mutable": true, "name": "First parameter from child module", "option": null, @@ -440,7 +441,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "4edca123-07bf-4409-ad40-ed26f93beb5f", + "id": "b988dcc9-e1c9-4146-8cc7-3841b8b7a51d", "mutable": true, "name": "Second parameter from child module", "option": null, @@ -497,7 +498,7 @@ "constant_value": "windows" } }, - "schema_version": 1 + "schema_version": 0 }, { "address": "null_resource.dev", @@ -793,7 +794,7 @@ } } }, - "timestamp": "2025-01-29T22:48:16Z", + "timestamp": "2025-02-10T21:13:13Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfstate.json b/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfstate.json index 0c8abfa386ecf..90773ac8ee33c 100644 --- a/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfstate.json +++ b/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -17,7 +17,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "7298c15e-11c8-4a9e-a2ef-044dbc44d519", + "id": "6d1ceefd-1175-494a-beed-f45f83c063a6", "mutable": false, "name": "Example", "option": [ @@ -61,7 +61,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "a0dda000-20cb-42a7-9f83-1a1de0876e48", + "id": "25d7a201-a00a-4e56-aaa2-69e9e0bc3c10", "mutable": false, "name": "number_example", "option": null, @@ -88,7 +88,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "82a297b9-bbcb-4807-9de3-7217953dc6b0", + "id": "c1fac06b-ad1a-4f3b-9a4d-da621b3e922d", "mutable": false, "name": "number_example_max_zero", "option": null, @@ -127,7 +127,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "ae1c376b-e28b-456a-b36e-125b3bc6d938", + "id": "67e3c8a8-bd1c-4b25-9555-12f53113bda6", "mutable": false, "name": "number_example_min_max", "option": null, @@ -166,7 +166,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "57573ac3-5610-4887-b269-376071867eb5", + "id": "9dcf53ba-720d-40d3-bb6f-e0b311eb33de", "mutable": false, "name": "number_example_min_zero", "option": null, @@ -205,7 +205,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "0e08645d-0105-49ef-b278-26cdc30a826c", + "id": "3073ed0d-84f4-4f09-b22b-dafae13a675d", "mutable": false, "name": "Sample", "option": null, @@ -225,7 +225,7 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 1, + "schema_version": 0, "values": { "arch": "arm64", "auth": "token", @@ -241,17 +241,19 @@ } ], "env": null, - "id": "c5c402bd-215b-487f-862f-eca25fe88a72", + "id": "d85e10ff-8f89-4a61-8664-16eeadf8c3b3", "init_script": "", + "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", - "resources_monitoring": [], "shutdown_script": null, + "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": "non-blocking", - "token": "b70d10f3-90bc-4abd-8cd9-b11da843954a", + "startup_script_behavior": null, + "startup_script_timeout": 300, + "token": "8f1f08db-3676-4568-b3c7-aa17f76ff541", "troubleshooting_url": null }, "sensitive_values": { @@ -259,7 +261,6 @@ {} ], "metadata": [], - "resources_monitoring": [], "token": true } }, @@ -271,7 +272,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "8544034527967282476", + "id": "8286189170864212220", "triggers": null }, "sensitive_values": {}, @@ -296,7 +297,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "68ae438d-7194-4f5b-adeb-9c74059d9888", + "id": "e5a33071-b0bd-483b-8fb8-2f770e33cad4", "mutable": true, "name": "First parameter from module", "option": null, @@ -323,7 +324,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "32f0f7f3-26a5-4023-a4e6-d9436cfe8cb4", + "id": "d32f6615-9ab2-40e0-80a3-a2dee39bd04b", "mutable": true, "name": "Second parameter from module", "option": null, @@ -355,7 +356,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "5235636a-3319-47ae-8879-b62f9ee9c5aa", + "id": "a596590d-75ce-4255-bd65-241ff9b01517", "mutable": true, "name": "First parameter from child module", "option": null, @@ -382,7 +383,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "54fa94ff-3048-457d-8de2-c182f6287c8d", + "id": "e74be7b4-95dd-4f21-b1b4-db69567c28ac", "mutable": true, "name": "Second parameter from child module", "option": null, diff --git a/provisioner/terraform/testdata/version.txt b/provisioner/terraform/testdata/version.txt index 66beabb5795e7..db77e0ee9760a 100644 --- a/provisioner/terraform/testdata/version.txt +++ b/provisioner/terraform/testdata/version.txt @@ -1 +1 @@ -1.9.8 +1.10.5 diff --git a/scripts/Dockerfile.base b/scripts/Dockerfile.base index 30ef6802ed716..f9d2bf6594b08 100644 --- a/scripts/Dockerfile.base +++ b/scripts/Dockerfile.base @@ -26,7 +26,7 @@ RUN apk add --no-cache \ # Terraform was disabled in the edge repo due to a build issue. # https://gitlab.alpinelinux.org/alpine/aports/-/commit/f3e263d94cfac02d594bef83790c280e045eba35 # Using wget for now. Note that busybox unzip doesn't support streaming. -RUN ARCH="$(arch)"; if [ "${ARCH}" == "x86_64" ]; then ARCH="amd64"; elif [ "${ARCH}" == "aarch64" ]; then ARCH="arm64"; fi; wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.9.8/terraform_1.9.8_linux_${ARCH}.zip" && \ +RUN ARCH="$(arch)"; if [ "${ARCH}" == "x86_64" ]; then ARCH="amd64"; elif [ "${ARCH}" == "aarch64" ]; then ARCH="arm64"; fi; wget -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.10.5/terraform_1.10.5_linux_${ARCH}.zip" && \ busybox unzip /tmp/terraform.zip -d /usr/local/bin && \ rm -f /tmp/terraform.zip && \ chmod +x /usr/local/bin/terraform && \ From 996bbc03d84d1abaf373ad75fb181decddeb40b0 Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Mon, 10 Feb 2025 15:27:03 -0600 Subject: [PATCH 2/3] fixup! chore: upgrade terraform to 1.10.5 --- docs/install/offline.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install/offline.md b/docs/install/offline.md index 321fcfb392978..0f83ae4077ee4 100644 --- a/docs/install/offline.md +++ b/docs/install/offline.md @@ -7,7 +7,7 @@ environments. However, some changes to your configuration are necessary. > offline with Kubernetes or Docker. | | Public deployments | Offline deployments | -| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Terraform binary | By default, Coder downloads Terraform binary from [releases.hashicorp.com](https://releases.hashicorp.com) | Terraform binary must be included in `PATH` for the VM or container image. [Supported versions](https://github.com/coder/coder/blob/main/provisioner/terraform/install.go#L23-L24) | | Terraform registry | Coder templates will attempt to download providers from [registry.terraform.io](https://registry.terraform.io) or [custom source addresses](https://developer.hashicorp.com/terraform/language/providers/requirements#source-addresses) specified in each template | [Custom source addresses](https://developer.hashicorp.com/terraform/language/providers/requirements#source-addresses) can be specified in each Coder template, or a custom registry/mirror can be used. More details below | | STUN | By default, Coder uses Google's public STUN server for direct workspace connections | STUN can be safely [disabled](../reference/cli/server.md#--derp-server-stun-addresses) users can still connect via [relayed connections](../admin/networking/index.md#-geo-distribution). Alternatively, you can set a [custom DERP server](../reference/cli/server.md#--derp-server-stun-addresses) | From b770dc7d1b303bc0fdcf676af6ec63f26babde69 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 18 Feb 2025 11:29:54 +0000 Subject: [PATCH 3/3] chore(provisioner/terraform/testdata): update provider versions, fix resource monitor tests (#16601) Updates to https://github.com/coder/coder/pull/16519 - Fixes missing leading `/` in volumes in resource monitor tests - Updates provider to `>=2.0.0` in provider testdata - Fixes provider to required release version for resource monitors --- provisioner/terraform/resources_test.go | 4 +- .../testdata/calling-module/calling-module.tf | 2 +- .../calling-module/calling-module.tfplan.json | 18 ++--- .../calling-module.tfstate.json | 15 ++-- .../chaining-resources/chaining-resources.tf | 2 +- .../chaining-resources.tfplan.json | 18 ++--- .../chaining-resources.tfstate.json | 15 ++-- .../conflicting-resources.tf | 2 +- .../conflicting-resources.tfplan.json | 18 ++--- .../conflicting-resources.tfstate.json | 15 ++-- .../display-apps-disabled.tf | 2 +- .../display-apps-disabled.tfplan.json | 18 ++--- .../display-apps-disabled.tfstate.json | 13 ++-- .../testdata/display-apps/display-apps.tf | 2 +- .../display-apps/display-apps.tfplan.json | 18 ++--- .../display-apps/display-apps.tfstate.json | 13 ++-- .../external-auth-providers.tf | 2 +- .../external-auth-providers.tfplan.json | 18 ++--- .../external-auth-providers.tfstate.json | 13 ++-- .../testdata/instance-id/instance-id.tf | 2 +- .../instance-id/instance-id.tfplan.json | 18 ++--- .../instance-id/instance-id.tfstate.json | 17 ++--- .../kubernetes-metadata.tf | 2 +- .../testdata/mapped-apps/mapped-apps.tf | 2 +- .../mapped-apps/mapped-apps.tfplan.json | 40 +++++------ .../mapped-apps/mapped-apps.tfstate.json | 33 ++++----- .../multiple-agents-multiple-apps.tf | 2 +- .../multiple-agents-multiple-apps.tfplan.json | 68 ++++++++----------- ...multiple-agents-multiple-apps.tfstate.json | 56 +++++++-------- .../multiple-agents-multiple-envs.tf | 2 +- .../multiple-agents-multiple-envs.tfplan.json | 48 +++++-------- ...multiple-agents-multiple-envs.tfstate.json | 44 ++++++------ .../multiple-agents-multiple-monitors.tf | 6 +- ...tiple-agents-multiple-monitors.tfplan.json | 18 ++--- ...iple-agents-multiple-monitors.tfstate.json | 24 +++---- .../multiple-agents-multiple-scripts.tf | 2 +- ...ltiple-agents-multiple-scripts.tfplan.json | 44 +++++------- ...tiple-agents-multiple-scripts.tfstate.json | 44 ++++++------ .../multiple-agents/multiple-agents.tf | 2 +- .../multiple-agents.tfplan.json | 52 ++++---------- .../multiple-agents.tfstate.json | 42 ++++-------- .../testdata/multiple-apps/multiple-apps.tf | 2 +- .../multiple-apps/multiple-apps.tfplan.json | 54 +++++++-------- .../multiple-apps/multiple-apps.tfstate.json | 43 ++++++------ .../resource-metadata-duplicate.tf | 2 +- .../resource-metadata-duplicate.tfplan.json | 26 +++---- .../resource-metadata-duplicate.tfstate.json | 25 +++---- .../resource-metadata/resource-metadata.tf | 2 +- .../resource-metadata.tfplan.json | 22 +++--- .../resource-metadata.tfstate.json | 19 +++--- .../rich-parameters-order.tf | 2 +- .../rich-parameters-order.tfplan.json | 22 +++--- .../rich-parameters-order.tfstate.json | 17 ++--- .../rich-parameters-validation.tf | 2 +- .../rich-parameters-validation.tfplan.json | 30 ++++---- .../rich-parameters-validation.tfstate.json | 25 +++---- .../child-external-module/main.tf | 2 +- .../rich-parameters/external-module/main.tf | 2 +- .../rich-parameters/rich-parameters.tf | 2 +- .../rich-parameters.tfplan.json | 38 +++++------ .../rich-parameters.tfstate.json | 33 ++++----- 61 files changed, 465 insertions(+), 681 deletions(-) diff --git a/provisioner/terraform/resources_test.go b/provisioner/terraform/resources_test.go index 873627fd67080..5564f51a81ca6 100644 --- a/provisioner/terraform/resources_test.go +++ b/provisioner/terraform/resources_test.go @@ -406,12 +406,12 @@ func TestConvertResources(t *testing.T) { }, Volumes: []*proto.VolumeResourceMonitor{ { - Path: "volume2", + Path: "/volume2", Enabled: false, Threshold: 50, }, { - Path: "volume1", + Path: "/volume1", Enabled: true, Threshold: 80, }, diff --git a/provisioner/terraform/testdata/calling-module/calling-module.tf b/provisioner/terraform/testdata/calling-module/calling-module.tf index 14777169d9994..33fcbb3f1984f 100644 --- a/provisioner/terraform/testdata/calling-module/calling-module.tf +++ b/provisioner/terraform/testdata/calling-module/calling-module.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/calling-module/calling-module.tfplan.json b/provisioner/terraform/testdata/calling-module/calling-module.tfplan.json index 6bdd8d84eb025..8759627e35398 100644 --- a/provisioner/terraform/testdata/calling-module/calling-module.tfplan.json +++ b/provisioner/terraform/testdata/calling-module/calling-module.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -90,16 +87,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -177,7 +171,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "module.module:null": { "name": "null", @@ -201,7 +195,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 } ], "module_calls": { @@ -260,7 +254,7 @@ ] } ], - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/calling-module/calling-module.tfstate.json b/provisioner/terraform/testdata/calling-module/calling-module.tfstate.json index edacf9419b40d..0286c44e0412b 100644 --- a/provisioner/terraform/testdata/calling-module/calling-module.tfstate.json +++ b/provisioner/terraform/testdata/calling-module/calling-module.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "e9b8432d-5407-47b5-82d4-0859088c9e1b", + "id": "6b8c1681-8d24-454f-9674-75aa10a78a66", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "63a661a4-1c4e-4495-ab78-6cfe6987517a", + "startup_script_behavior": "non-blocking", + "token": "b10f2c9a-2936-4d64-9d3c-3705fa094272", "troubleshooting_url": null }, "sensitive_values": { @@ -69,7 +66,7 @@ "outputs": { "script": "" }, - "random": "1712821389824061702" + "random": "2818431725852233027" }, "sensitive_values": { "inputs": {}, @@ -84,7 +81,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "6220748043164166517", + "id": "2514800225855033412", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/chaining-resources/chaining-resources.tf b/provisioner/terraform/testdata/chaining-resources/chaining-resources.tf index 3f210452dfee0..6ad44a62de986 100644 --- a/provisioner/terraform/testdata/chaining-resources/chaining-resources.tf +++ b/provisioner/terraform/testdata/chaining-resources/chaining-resources.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.json b/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.json index f793fa36fa13d..4f478962e7b97 100644 --- a/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.json +++ b/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -80,16 +77,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -155,7 +149,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -178,7 +172,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.a", @@ -205,7 +199,7 @@ ] } }, - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.json b/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.json index cc1c30e8a09c1..d51e2ecb81c71 100644 --- a/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.json +++ b/provisioner/terraform/testdata/chaining-resources/chaining-resources.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "e9bcf1a7-c91a-4db9-a6bb-f89a3082ef66", + "id": "a4c46a8c-dd2a-4913-8897-e77b24fdd7f1", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "83e56188-ba75-488e-9933-32e2f44d1ce7", + "startup_script_behavior": "non-blocking", + "token": "c263f7b6-c0e7-4106-b3fc-aefbe373ee7a", "troubleshooting_url": null }, "sensitive_values": { @@ -57,7 +54,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "1893538498646229716", + "id": "4299141049988455758", "triggers": null }, "sensitive_values": {}, @@ -74,7 +71,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "4382074484143055430", + "id": "8248139888152642631", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tf b/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tf index 8c7b200fca7b0..86585b6a85357 100644 --- a/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tf +++ b/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfplan.json b/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfplan.json index 3c4ab9bbbd7f1..57af82397bd20 100644 --- a/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfplan.json +++ b/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -80,16 +77,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -155,7 +149,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -178,7 +172,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.first", @@ -205,7 +199,7 @@ ] } }, - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfstate.json b/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfstate.json index 307950e187fa4..f1e9760fcdac1 100644 --- a/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfstate.json +++ b/provisioner/terraform/testdata/conflicting-resources/conflicting-resources.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "354f4b93-a519-4629-84da-cc9426c352fa", + "id": "c5972861-13a8-4c3d-9e7b-c32aab3c5105", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "daef0635-0996-4610-9025-8b9c3b7a04bc", + "startup_script_behavior": "non-blocking", + "token": "9c2883aa-0c0e-470f-a40c-588b47e663be", "troubleshooting_url": null }, "sensitive_values": { @@ -57,7 +54,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "3273523859716028364", + "id": "4167500156989566756", "triggers": null }, "sensitive_values": {}, @@ -73,7 +70,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "1330606908204006055", + "id": "2831408390006359178", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tf b/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tf index 494e0acafb48f..155b81889540e 100644 --- a/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tf +++ b/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfplan.json b/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfplan.json index d1fe394716ad2..f715d1e5b36ef 100644 --- a/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfplan.json +++ b/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfplan.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,16 +26,13 @@ } ], "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -88,16 +85,13 @@ } ], "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -146,7 +140,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -188,7 +182,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev", @@ -204,7 +198,7 @@ ] } }, - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfstate.json b/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfstate.json index ea5ee367405d5..8127adf08deb5 100644 --- a/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfstate.json +++ b/provisioner/terraform/testdata/display-apps-disabled/display-apps-disabled.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "7227755c-77c8-42bb-88cb-52323d915afb", + "id": "f145f4f8-1d6c-4a66-ba80-abbc077dfe1e", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "800fd072-a8d0-456f-81cf-5293e978578f", + "startup_script_behavior": "non-blocking", + "token": "612a69b3-4b07-4752-b930-ed7dd36dc926", "troubleshooting_url": null }, "sensitive_values": { @@ -57,7 +54,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "838322553927056753", + "id": "3571714162665255692", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/display-apps/display-apps.tf b/provisioner/terraform/testdata/display-apps/display-apps.tf index a36b68cd3b1cc..3544ab535ad2f 100644 --- a/provisioner/terraform/testdata/display-apps/display-apps.tf +++ b/provisioner/terraform/testdata/display-apps/display-apps.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/display-apps/display-apps.tfplan.json b/provisioner/terraform/testdata/display-apps/display-apps.tfplan.json index 8148a4a79ea04..b4b3e8d72cb07 100644 --- a/provisioner/terraform/testdata/display-apps/display-apps.tfplan.json +++ b/provisioner/terraform/testdata/display-apps/display-apps.tfplan.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,16 +26,13 @@ } ], "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -88,16 +85,13 @@ } ], "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -146,7 +140,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -188,7 +182,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev", @@ -204,7 +198,7 @@ ] } }, - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/display-apps/display-apps.tfstate.json b/provisioner/terraform/testdata/display-apps/display-apps.tfstate.json index 25c62b09cbcec..53be3e3041729 100644 --- a/provisioner/terraform/testdata/display-apps/display-apps.tfstate.json +++ b/provisioner/terraform/testdata/display-apps/display-apps.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "14e4d398-d5d7-46b3-a973-6bacf0b8fcb9", + "id": "df983aa4-ad0a-458a-acd2-1d5c93e4e4d8", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "674e1a7f-548c-4c59-9168-cfc830bbe620", + "startup_script_behavior": "non-blocking", + "token": "c2ccd3c2-5ac3-46f5-9620-f1d4c633169f", "troubleshooting_url": null }, "sensitive_values": { @@ -57,7 +54,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "5306625577114392588", + "id": "4058093101918806466", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tf b/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tf index 0b68bbe5710fe..5f45a88aacb6a 100644 --- a/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tf +++ b/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfplan.json b/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfplan.json index 6f81a643ec1e4..fbd2636bfb68d 100644 --- a/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfplan.json +++ b/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -68,16 +65,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -160,7 +154,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -183,7 +177,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev", @@ -228,7 +222,7 @@ ] } }, - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfstate.json b/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfstate.json index 9f046421a344d..e439476cc9b52 100644 --- a/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfstate.json +++ b/provisioner/terraform/testdata/external-auth-providers/external-auth-providers.tfstate.json @@ -38,7 +38,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -54,19 +54,16 @@ } ], "env": null, - "id": "0a08db63-5003-45f3-83f8-1ef57a51daf4", + "id": "048746d5-8a05-4615-bdf3-5e0ecda12ba0", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "988251ef-e44b-44ab-8ea1-636a823626b0", + "startup_script_behavior": "non-blocking", + "token": "d2a64629-1d18-4704-a3b1-eae300a362d1", "troubleshooting_url": null }, "sensitive_values": { @@ -85,7 +82,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "6597814393556158080", + "id": "5369997016721085167", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/instance-id/instance-id.tf b/provisioner/terraform/testdata/instance-id/instance-id.tf index 1cd4ab828b4f0..84e010a79d6e9 100644 --- a/provisioner/terraform/testdata/instance-id/instance-id.tf +++ b/provisioner/terraform/testdata/instance-id/instance-id.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/instance-id/instance-id.tfplan.json b/provisioner/terraform/testdata/instance-id/instance-id.tfplan.json index 996ddcdbc58e2..7c929b496d8fd 100644 --- a/provisioner/terraform/testdata/instance-id/instance-id.tfplan.json +++ b/provisioner/terraform/testdata/instance-id/instance-id.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "google-instance-identity", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -80,16 +77,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -156,7 +150,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -182,7 +176,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_agent_instance.main", @@ -225,7 +219,7 @@ ] } ], - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/instance-id/instance-id.tfstate.json b/provisioner/terraform/testdata/instance-id/instance-id.tfstate.json index 4f9d9b72e494b..7f7cdfa6a5055 100644 --- a/provisioner/terraform/testdata/instance-id/instance-id.tfstate.json +++ b/provisioner/terraform/testdata/instance-id/instance-id.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "google-instance-identity", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "7eeea0f1-4d68-4779-9000-856ca09eac6a", + "id": "0b84fffb-d2ca-4048-bdab-7b84229bffba", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "3766693b-d30b-4a0a-85ef-aa07429ea814", + "startup_script_behavior": "non-blocking", + "token": "05f05235-a62b-4634-841b-da7fe3763e2e", "troubleshooting_url": null }, "sensitive_values": { @@ -57,8 +54,8 @@ "provider_name": "registry.terraform.io/coder/coder", "schema_version": 0, "values": { - "agent_id": "7eeea0f1-4d68-4779-9000-856ca09eac6a", - "id": "b54d5472-df9c-46b3-a11c-d6abb0c0ac4a", + "agent_id": "0b84fffb-d2ca-4048-bdab-7b84229bffba", + "id": "7d6e9d00-4cf9-4a38-9b4b-1eb6ba98b50c", "instance_id": "example" }, "sensitive_values": {}, @@ -74,7 +71,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "650207462661444552", + "id": "446414716532401482", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/kubernetes-metadata/kubernetes-metadata.tf b/provisioner/terraform/testdata/kubernetes-metadata/kubernetes-metadata.tf index 2ae1298904fbb..faa08706de380 100644 --- a/provisioner/terraform/testdata/kubernetes-metadata/kubernetes-metadata.tf +++ b/provisioner/terraform/testdata/kubernetes-metadata/kubernetes-metadata.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } kubernetes = { source = "hashicorp/kubernetes" diff --git a/provisioner/terraform/testdata/mapped-apps/mapped-apps.tf b/provisioner/terraform/testdata/mapped-apps/mapped-apps.tf index 1e13495d6ebc7..7664ead2b4962 100644 --- a/provisioner/terraform/testdata/mapped-apps/mapped-apps.tf +++ b/provisioner/terraform/testdata/mapped-apps/mapped-apps.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfplan.json b/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfplan.json index a085ac6f7f4cd..dfcf3ccc7b52f 100644 --- a/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfplan.json +++ b/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -42,16 +39,16 @@ "name": "apps", "index": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "command": null, "display_name": "app1", "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -68,16 +65,16 @@ "name": "apps", "index": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "command": null, "display_name": "app2", "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app2", "subdomain": null, @@ -120,16 +117,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -164,10 +158,10 @@ "display_name": "app1", "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -201,10 +195,10 @@ "display_name": "app2", "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app2", "subdomain": null, @@ -248,7 +242,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -271,7 +265,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_app.apps", @@ -298,7 +292,7 @@ ] } }, - "schema_version": 0, + "schema_version": 1, "for_each_expression": { "references": [ "local.apps_map" @@ -327,7 +321,7 @@ ] } ], - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfstate.json b/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfstate.json index 3aca2d88ae416..ae0acf1650825 100644 --- a/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfstate.json +++ b/provisioner/terraform/testdata/mapped-apps/mapped-apps.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "df2afa53-716e-46f8-9c79-f3e5353098bb", + "id": "4b66f4b5-d235-4c57-8b50-7db3643f8070", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "ec24a01c-e5a0-43b8-8c3f-d2afb565180e", + "startup_script_behavior": "non-blocking", + "token": "a39963f7-3429-453f-b23f-961aa3590f06", "troubleshooting_url": null }, "sensitive_values": { @@ -56,18 +53,18 @@ "name": "apps", "index": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "df2afa53-716e-46f8-9c79-f3e5353098bb", + "agent_id": "4b66f4b5-d235-4c57-8b50-7db3643f8070", "command": null, "display_name": "app1", "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "id": "9a9196f9-da25-4166-9622-e571366709e0", - "name": null, + "id": "e67b9091-a454-42ce-85ee-df929f716c4f", + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -87,18 +84,18 @@ "name": "apps", "index": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "df2afa53-716e-46f8-9c79-f3e5353098bb", + "agent_id": "4b66f4b5-d235-4c57-8b50-7db3643f8070", "command": null, "display_name": "app2", "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "id": "b9b5d49a-abe5-452b-84a2-8537b5e9a1f2", - "name": null, + "id": "84db109a-484c-42cc-b428-866458a99964", + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app2", "subdomain": null, @@ -119,7 +116,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "6874225771934562777", + "id": "800496923164467286", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tf b/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tf index 02c6ff6c1b67f..8ac412b5b3894 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tf +++ b/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfplan.json b/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfplan.json index c731bf6c62987..4ba8c29b7fa77 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfplan.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -41,23 +38,20 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -72,16 +66,16 @@ "type": "coder_app", "name": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "command": null, "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -97,7 +91,7 @@ "type": "coder_app", "name": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "command": null, "display_name": null, @@ -109,10 +103,10 @@ "url": "http://localhost:13337/healthz" } ], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -130,16 +124,16 @@ "type": "coder_app", "name": "app3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "command": null, "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -194,16 +188,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -238,16 +229,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -281,10 +269,10 @@ "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -323,10 +311,10 @@ "url": "http://localhost:13337/healthz" } ], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -363,10 +351,10 @@ "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -431,7 +419,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -454,7 +442,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_agent.dev2", @@ -470,7 +458,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_app.app1", @@ -489,7 +477,7 @@ "constant_value": "app1" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_app.app2", @@ -524,7 +512,7 @@ "constant_value": true } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_app.app3", @@ -546,7 +534,7 @@ "constant_value": false } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev1", @@ -587,7 +575,7 @@ ] } ], - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfstate.json b/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfstate.json index 6bd7f6d0ac357..7ffb9866b4c48 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfstate.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-apps/multiple-agents-multiple-apps.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "760def15-3a41-4b82-8960-26c89f27494a", + "id": "9ba3ef14-bb43-4470-b019-129bf16eb0b2", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "51ebd4ea-d208-4ee3-a8f7-14d5030313b8", + "startup_script_behavior": "non-blocking", + "token": "b40bdbf8-bf41-4822-a71e-03016079ddbe", "troubleshooting_url": null }, "sensitive_values": { @@ -55,7 +52,7 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -71,19 +68,16 @@ } ], "env": null, - "id": "a6c8d4d4-1402-4b06-9244-92a30ac88528", + "id": "959048f4-3f1d-4cb0-93da-1dfacdbb7976", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "0ac63d9d-9bc0-45c5-bf5b-5367e9a6949d", + "startup_script_behavior": "non-blocking", + "token": "71ef9752-9257-478c-bf5e-c6713a9f5073", "troubleshooting_url": null }, "sensitive_values": { @@ -100,18 +94,18 @@ "type": "coder_app", "name": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "760def15-3a41-4b82-8960-26c89f27494a", + "agent_id": "9ba3ef14-bb43-4470-b019-129bf16eb0b2", "command": null, "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "id": "0de8ba21-b451-44ea-8f2b-642cbb1c4ca3", - "name": null, + "id": "f125297a-130c-4c29-a1bf-905f95841fff", + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -130,9 +124,9 @@ "type": "coder_app", "name": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "760def15-3a41-4b82-8960-26c89f27494a", + "agent_id": "9ba3ef14-bb43-4470-b019-129bf16eb0b2", "command": null, "display_name": null, "external": false, @@ -143,11 +137,11 @@ "url": "http://localhost:13337/healthz" } ], + "hidden": false, "icon": null, - "id": "52369592-30ce-40a4-bc39-3a1850ae0836", - "name": null, + "id": "687e66e5-4888-417d-8fbd-263764dc5011", + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -168,18 +162,18 @@ "type": "coder_app", "name": "app3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "a6c8d4d4-1402-4b06-9244-92a30ac88528", + "agent_id": "959048f4-3f1d-4cb0-93da-1dfacdbb7976", "command": null, "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "id": "5ad62b47-80ff-450b-a1ca-06fdb4b2eb32", - "name": null, + "id": "70f10886-fa90-4089-b290-c2d44c5073ae", + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -200,7 +194,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "8161183178069686641", + "id": "1056762545519872704", "triggers": null }, "sensitive_values": {}, @@ -216,7 +210,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "1227420809291272658", + "id": "784993046206959042", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tf b/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tf index d167d44942776..e12a895d14baa 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tf +++ b/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfplan.json b/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfplan.json index c4aeff1206949..7fe81435861e4 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfplan.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -41,23 +38,20 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -72,7 +66,7 @@ "type": "coder_env", "name": "env1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "name": "ENV_1", "value": "Env 1" @@ -85,7 +79,7 @@ "type": "coder_env", "name": "env2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "name": "ENV_2", "value": "Env 2" @@ -98,7 +92,7 @@ "type": "coder_env", "name": "env3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "name": "ENV_3", "value": "Env 3" @@ -150,16 +144,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -194,16 +185,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -338,7 +326,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -361,7 +349,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_agent.dev2", @@ -377,7 +365,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_env.env1", @@ -399,7 +387,7 @@ "constant_value": "Env 1" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_env.env2", @@ -421,7 +409,7 @@ "constant_value": "Env 2" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_env.env3", @@ -443,7 +431,7 @@ "constant_value": "Env 3" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev1", @@ -472,19 +460,19 @@ }, "relevant_attributes": [ { - "resource": "coder_agent.dev1", + "resource": "coder_agent.dev2", "attribute": [ "id" ] }, { - "resource": "coder_agent.dev2", + "resource": "coder_agent.dev1", "attribute": [ "id" ] } ], - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfstate.json b/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfstate.json index 537486365841e..f7801ad37220c 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfstate.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-envs/multiple-agents-multiple-envs.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "2879ad6a-79d9-4beb-97ad-46d8bdc5ad66", + "id": "5494b9d3-a230-41a4-8f50-be69397ab4cf", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "e3513fbd-5a33-4d35-aa6b-b286fe09e818", + "startup_script_behavior": "non-blocking", + "token": "84f93622-75a4-4bf1-b806-b981066d4870", "troubleshooting_url": null }, "sensitive_values": { @@ -55,7 +52,7 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -71,19 +68,16 @@ } ], "env": null, - "id": "608deb5a-a27c-4746-afe4-d904a0d47eb8", + "id": "a4cb672c-020b-4729-b451-c7fabba4669c", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "cd5ab435-e8d9-4975-b7ad-9afce46c661d", + "startup_script_behavior": "non-blocking", + "token": "2861b097-2ea6-4c3a-a64c-5a726b9e3700", "troubleshooting_url": null }, "sensitive_values": { @@ -100,10 +94,10 @@ "type": "coder_env", "name": "env1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "2879ad6a-79d9-4beb-97ad-46d8bdc5ad66", - "id": "67553ccc-a032-4ccd-baf6-99c9656be136", + "agent_id": "5494b9d3-a230-41a4-8f50-be69397ab4cf", + "id": "4ec31abd-b84a-45b6-80bd-c78eecf387f1", "name": "ENV_1", "value": "Env 1" }, @@ -118,10 +112,10 @@ "type": "coder_env", "name": "env2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "2879ad6a-79d9-4beb-97ad-46d8bdc5ad66", - "id": "6fb8f5d4-57cf-4cd6-b088-9517b7a326c5", + "agent_id": "5494b9d3-a230-41a4-8f50-be69397ab4cf", + "id": "c0f4dac3-2b1a-4903-a0f1-2743f2000f1b", "name": "ENV_2", "value": "Env 2" }, @@ -136,10 +130,10 @@ "type": "coder_env", "name": "env3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "608deb5a-a27c-4746-afe4-d904a0d47eb8", - "id": "b1c8d9ca-3a51-4d41-86ef-acb20b06ea56", + "agent_id": "a4cb672c-020b-4729-b451-c7fabba4669c", + "id": "e0ccf967-d767-4077-b521-20132af3217a", "name": "ENV_3", "value": "Env 3" }, @@ -156,7 +150,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "4033768315452267294", + "id": "7748417950448815454", "triggers": null }, "sensitive_values": {}, @@ -172,7 +166,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "6791780166282987042", + "id": "1466092153882814278", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tf b/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tf index cb1491ad68caa..f86ceb180edb5 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tf +++ b/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = "2.2.0-pre0" } } } @@ -27,12 +27,12 @@ resource "coder_agent" "dev2" { threshold = 99 } volume { - path = "volume1" + path = "/volume1" enabled = true threshold = 80 } volume { - path = "volume2" + path = "/volume2" enabled = false threshold = 50 } diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tfplan.json b/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tfplan.json index 218f5b88396f1..b5481b4c89463 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tfplan.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tfplan.json @@ -1,6 +1,6 @@ { "format_version": "1.2", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "planned_values": { "root_module": { "resources": [ @@ -79,12 +79,12 @@ "volume": [ { "enabled": false, - "path": "volume2", + "path": "/volume2", "threshold": 50 }, { "enabled": true, - "path": "volume1", + "path": "/volume1", "threshold": 80 } ] @@ -286,12 +286,12 @@ "volume": [ { "enabled": false, - "path": "volume2", + "path": "/volume2", "threshold": 50 }, { "enabled": true, - "path": "volume1", + "path": "/volume1", "threshold": 80 } ] @@ -448,7 +448,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": "2.2.0-pre0" }, "null": { "name": "null", @@ -518,7 +518,7 @@ "constant_value": true }, "path": { - "constant_value": "volume1" + "constant_value": "/volume1" }, "threshold": { "constant_value": 80 @@ -529,7 +529,7 @@ "constant_value": false }, "path": { - "constant_value": "volume2" + "constant_value": "/volume2" }, "threshold": { "constant_value": 50 @@ -618,7 +618,7 @@ ] } ], - "timestamp": "2025-01-29T22:48:06Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tfstate.json b/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tfstate.json index 0def0a8ff7a58..85ef0a7ccddad 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tfstate.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-monitors/multiple-agents-multiple-monitors.tfstate.json @@ -1,6 +1,6 @@ { "format_version": "1.0", - "terraform_version": "1.9.8", + "terraform_version": "1.10.5", "values": { "root_module": { "resources": [ @@ -26,7 +26,7 @@ } ], "env": null, - "id": "2f065c5c-cbed-4abe-b30b-942f410b6109", + "id": "9c36f8be-874a-40f6-a395-f37d6d910a83", "init_script": "", "metadata": [], "motd_file": null, @@ -46,7 +46,7 @@ "shutdown_script": null, "startup_script": null, "startup_script_behavior": "non-blocking", - "token": "c34d255f-3dc8-4409-94e0-828ea7ab7793", + "token": "1bed5f78-a309-4049-9805-b5f52a17306d", "troubleshooting_url": null }, "sensitive_values": { @@ -87,7 +87,7 @@ } ], "env": null, - "id": "d62d9086-47e6-44be-88da-d8fc4cb70423", + "id": "23009046-30ce-40d4-81f4-f8e7726335a5", "init_script": "", "metadata": [], "motd_file": null, @@ -104,12 +104,12 @@ "volume": [ { "enabled": false, - "path": "volume2", + "path": "/volume2", "threshold": 50 }, { "enabled": true, - "path": "volume1", + "path": "/volume1", "threshold": 80 } ] @@ -118,7 +118,7 @@ "shutdown_script": null, "startup_script": null, "startup_script_behavior": "non-blocking", - "token": "f306a11c-a37e-4086-ab22-6102e255d153", + "token": "3d40e367-25e5-43a3-8b7a-8528b31edbbd", "troubleshooting_url": null }, "sensitive_values": { @@ -148,14 +148,14 @@ "provider_name": "registry.terraform.io/coder/coder", "schema_version": 1, "values": { - "agent_id": "2f065c5c-cbed-4abe-b30b-942f410b6109", + "agent_id": "9c36f8be-874a-40f6-a395-f37d6d910a83", "command": null, "display_name": null, "external": false, "healthcheck": [], "hidden": false, "icon": null, - "id": "dfd0f1de-9c17-4a69-9a2b-5d3f64f28310", + "id": "c8ff409a-d30d-4e62-a5a1-771f90d712ca", "open_in": "slim-window", "order": null, "share": "owner", @@ -178,7 +178,7 @@ "provider_name": "registry.terraform.io/coder/coder", "schema_version": 1, "values": { - "agent_id": "2f065c5c-cbed-4abe-b30b-942f410b6109", + "agent_id": "9c36f8be-874a-40f6-a395-f37d6d910a83", "command": null, "display_name": null, "external": false, @@ -191,7 +191,7 @@ ], "hidden": false, "icon": null, - "id": "70b2d438-0cdd-420a-9fd6-91d019d95a75", + "id": "23c1f02f-cc1a-4e64-b64f-dc2294781c14", "open_in": "slim-window", "order": null, "share": "owner", @@ -216,7 +216,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "6263120086083011264", + "id": "4679211063326469519", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tf b/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tf index af041e2da350d..c0aee0d2d97e5 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tf +++ b/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfplan.json b/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfplan.json index e0401fa00e360..628c97c8563ff 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfplan.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -41,23 +38,20 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -72,7 +66,7 @@ "type": "coder_script", "name": "script1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "cron": null, "display_name": "Foobar Script 1", @@ -92,7 +86,7 @@ "type": "coder_script", "name": "script2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "cron": null, "display_name": "Foobar Script 2", @@ -112,7 +106,7 @@ "type": "coder_script", "name": "script3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "cron": null, "display_name": "Foobar Script 3", @@ -171,16 +165,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -215,16 +206,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -380,7 +368,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -403,7 +391,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_agent.dev2", @@ -419,7 +407,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_script.script1", @@ -444,7 +432,7 @@ "constant_value": "echo foobar 1" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_script.script2", @@ -469,7 +457,7 @@ "constant_value": "echo foobar 2" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_script.script3", @@ -494,7 +482,7 @@ "constant_value": "echo foobar 3" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev1", @@ -535,7 +523,7 @@ ] } ], - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfstate.json b/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfstate.json index c8855a06e4129..918dccb57bd11 100644 --- a/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfstate.json +++ b/provisioner/terraform/testdata/multiple-agents-multiple-scripts/multiple-agents-multiple-scripts.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "468a4604-2663-4707-855d-3368c8d29bb8", + "id": "56eebdd7-8348-439a-8ee9-3cd9a4967479", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "73a3a250-398b-4d19-804e-7d135200b449", + "startup_script_behavior": "non-blocking", + "token": "bc6f97e3-265d-49e9-b08b-e2bc38736da0", "troubleshooting_url": null }, "sensitive_values": { @@ -55,7 +52,7 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -71,19 +68,16 @@ } ], "env": null, - "id": "0e197ffe-f7b8-4711-80bc-84ae49524301", + "id": "36b8da5b-7a03-4da7-a081-f4ae599d7302", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "0662c49b-7d54-4844-988a-28a9b1258d8a", + "startup_script_behavior": "non-blocking", + "token": "fa30098e-d8d2-4dad-87ad-3e0a328d2084", "troubleshooting_url": null }, "sensitive_values": { @@ -100,13 +94,13 @@ "type": "coder_script", "name": "script1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "468a4604-2663-4707-855d-3368c8d29bb8", + "agent_id": "56eebdd7-8348-439a-8ee9-3cd9a4967479", "cron": null, "display_name": "Foobar Script 1", "icon": null, - "id": "4d40dadf-5970-45c8-9ccc-f3e03a34e5c6", + "id": "29d2f25b-f774-4bb8-9ef4-9aa03a4b3765", "log_path": null, "run_on_start": true, "run_on_stop": false, @@ -125,13 +119,13 @@ "type": "coder_script", "name": "script2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "468a4604-2663-4707-855d-3368c8d29bb8", + "agent_id": "56eebdd7-8348-439a-8ee9-3cd9a4967479", "cron": null, "display_name": "Foobar Script 2", "icon": null, - "id": "d22729a1-1894-4734-8e12-5726ecf44ca3", + "id": "7e7a2376-3028-493c-8ce1-665efd6c5d9c", "log_path": null, "run_on_start": true, "run_on_stop": false, @@ -150,13 +144,13 @@ "type": "coder_script", "name": "script3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "0e197ffe-f7b8-4711-80bc-84ae49524301", + "agent_id": "36b8da5b-7a03-4da7-a081-f4ae599d7302", "cron": null, "display_name": "Foobar Script 3", "icon": null, - "id": "3bc50212-25f2-4b09-b7c4-a8a5c4c3509a", + "id": "c6c46bde-7eff-462b-805b-82597a8095d2", "log_path": null, "run_on_start": true, "run_on_stop": false, @@ -177,7 +171,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "8074140607597719511", + "id": "3047178084751259009", "triggers": null }, "sensitive_values": {}, @@ -193,7 +187,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "3783603173687328893", + "id": "6983265822377125070", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-agents/multiple-agents.tf b/provisioner/terraform/testdata/multiple-agents/multiple-agents.tf index 18275b46f8f7f..b9187beb93acf 100644 --- a/provisioner/terraform/testdata/multiple-agents/multiple-agents.tf +++ b/provisioner/terraform/testdata/multiple-agents/multiple-agents.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfplan.json b/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfplan.json index 3c7451065d947..bf0bd8b21d340 100644 --- a/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfplan.json +++ b/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -41,23 +38,20 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 1, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": "/etc/motd", "order": null, "os": "darwin", "shutdown_script": "echo bye bye", - "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "non-blocking", - "startup_script_timeout": 300, "troubleshooting_url": null }, "sensitive_values": { @@ -72,23 +66,20 @@ "type": "coder_agent", "name": "dev3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "arm64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "blocking", - "startup_script_timeout": 300, "troubleshooting_url": "https://coder.com/troubleshoot" }, "sensitive_values": { @@ -103,23 +94,20 @@ "type": "coder_agent", "name": "dev4", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -161,16 +149,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -205,16 +190,13 @@ "connection_timeout": 1, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": "/etc/motd", "order": null, "os": "darwin", "shutdown_script": "echo bye bye", - "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "non-blocking", - "startup_script_timeout": 300, "troubleshooting_url": null }, "after_unknown": { @@ -249,16 +231,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "blocking", - "startup_script_timeout": 300, "troubleshooting_url": "https://coder.com/troubleshoot" }, "after_unknown": { @@ -293,16 +272,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -347,7 +323,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -370,7 +346,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_agent.dev2", @@ -398,7 +374,7 @@ "constant_value": "non-blocking" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_agent.dev3", @@ -420,7 +396,7 @@ "constant_value": "https://coder.com/troubleshoot" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_agent.dev4", @@ -436,7 +412,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev", @@ -455,7 +431,7 @@ ] } }, - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfstate.json b/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfstate.json index 57f5a8ed2ff0e..71987deb178cc 100644 --- a/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfstate.json +++ b/provisioner/terraform/testdata/multiple-agents/multiple-agents.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "99e72d2f-85e4-4ede-8e3f-5bdc28e7ee2b", + "id": "f65fcb62-ef69-44e8-b8eb-56224c9e9d6f", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "ba12ed5a-5a41-4a02-9271-4a48f4db2a15", + "startup_script_behavior": "non-blocking", + "token": "57047ef7-1433-4938-a604-4dd2812b1039", "troubleshooting_url": null }, "sensitive_values": { @@ -55,7 +52,7 @@ "type": "coder_agent", "name": "dev2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -71,19 +68,16 @@ } ], "env": null, - "id": "146319bc-36ac-4b6e-91e9-3c6eb859ec58", + "id": "d366a56f-2899-4e96-b0a1-3e97ac9bd834", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": "/etc/motd", "order": null, "os": "darwin", "shutdown_script": "echo bye bye", - "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "non-blocking", - "startup_script_timeout": 300, - "token": "47114bab-3278-4787-bff6-76f68c70bd22", + "token": "59a6c328-d6ac-450d-a507-de6c14cb16d0", "troubleshooting_url": null }, "sensitive_values": { @@ -100,7 +94,7 @@ "type": "coder_agent", "name": "dev3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "arm64", "auth": "token", @@ -116,19 +110,16 @@ } ], "env": null, - "id": "5a2e1518-b91f-4341-91f6-7ed1922c8f31", + "id": "907bbf6b-fa77-4138-a348-ef5d0fb98b15", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, "startup_script_behavior": "blocking", - "startup_script_timeout": 300, - "token": "406634fa-2b7e-449a-88a2-bf4807f5b0a7", + "token": "7f0bb618-c82a-491b-891a-6d9f3abeeca0", "troubleshooting_url": "https://coder.com/troubleshoot" }, "sensitive_values": { @@ -145,7 +136,7 @@ "type": "coder_agent", "name": "dev4", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -161,19 +152,16 @@ } ], "env": null, - "id": "02dd7b21-4b8e-42d8-9cb4-9ce08c8fe92a", + "id": "e9b11e47-0238-4915-9539-ac06617f3398", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "0bff8fe6-a940-488a-aa00-0a6b2b07cd9e", + "startup_script_behavior": "non-blocking", + "token": "102a2043-9a42-4490-b0b4-c4fb215552e0", "troubleshooting_url": null }, "sensitive_values": { @@ -192,7 +180,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "5771392311174655440", + "id": "2948336473894256689", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/multiple-apps/multiple-apps.tf b/provisioner/terraform/testdata/multiple-apps/multiple-apps.tf index c7c4f9968b5c3..c52f4a58b36f4 100644 --- a/provisioner/terraform/testdata/multiple-apps/multiple-apps.tf +++ b/provisioner/terraform/testdata/multiple-apps/multiple-apps.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfplan.json b/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfplan.json index 1561d582c049d..3f18f84cf30ec 100644 --- a/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfplan.json +++ b/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -41,16 +38,16 @@ "type": "coder_app", "name": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "command": null, "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -66,7 +63,7 @@ "type": "coder_app", "name": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "command": null, "display_name": null, @@ -78,10 +75,10 @@ "url": "http://localhost:13337/healthz" } ], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -99,16 +96,16 @@ "type": "coder_app", "name": "app3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "command": null, "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -151,16 +148,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -194,10 +188,10 @@ "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -236,10 +230,10 @@ "url": "http://localhost:13337/healthz" } ], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -276,10 +270,10 @@ "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "name": null, + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -323,7 +317,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -346,7 +340,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_app.app1", @@ -365,7 +359,7 @@ "constant_value": "app1" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_app.app2", @@ -400,7 +394,7 @@ "constant_value": true } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_app.app3", @@ -422,7 +416,7 @@ "constant_value": false } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev", @@ -446,7 +440,7 @@ ] } ], - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfstate.json b/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfstate.json index af43ef693419e..9a21887d3ed4b 100644 --- a/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfstate.json +++ b/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "dev1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,19 +26,16 @@ } ], "env": null, - "id": "f56f60c0-3136-4973-807c-a504bc4dfa61", + "id": "e7f1e434-ad52-4175-b8d1-4fab9fbe7891", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "f56dd2f3-3a7b-4377-9e55-5d57c9002ccf", + "startup_script_behavior": "non-blocking", + "token": "da1c4966-5bb7-459e-8b7e-ce1cf189e49d", "troubleshooting_url": null }, "sensitive_values": { @@ -55,18 +52,18 @@ "type": "coder_app", "name": "app1", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "f56f60c0-3136-4973-807c-a504bc4dfa61", + "agent_id": "e7f1e434-ad52-4175-b8d1-4fab9fbe7891", "command": null, "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "id": "bb40f902-a1eb-4116-9b6f-3155ffb054e2", - "name": null, + "id": "41882acb-ad8c-4436-a756-e55160e2eba7", + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app1", "subdomain": null, @@ -85,9 +82,9 @@ "type": "coder_app", "name": "app2", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "f56f60c0-3136-4973-807c-a504bc4dfa61", + "agent_id": "e7f1e434-ad52-4175-b8d1-4fab9fbe7891", "command": null, "display_name": null, "external": false, @@ -98,11 +95,11 @@ "url": "http://localhost:13337/healthz" } ], + "hidden": false, "icon": null, - "id": "456f853f-4569-4a29-b01a-956413370d4c", - "name": null, + "id": "28fb460e-746b-47b9-8c88-fc546f2ca6c4", + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app2", "subdomain": true, @@ -123,18 +120,18 @@ "type": "coder_app", "name": "app3", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { - "agent_id": "f56f60c0-3136-4973-807c-a504bc4dfa61", + "agent_id": "e7f1e434-ad52-4175-b8d1-4fab9fbe7891", "command": null, "display_name": null, "external": false, "healthcheck": [], + "hidden": false, "icon": null, - "id": "d6203d40-8b2b-4673-90e6-5affe8376284", - "name": null, + "id": "2751d89f-6c41-4b50-9982-9270ba0660b0", + "open_in": "slim-window", "order": null, - "relative_path": null, "share": "owner", "slug": "app3", "subdomain": false, @@ -155,7 +152,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "3449083001957036839", + "id": "1493563047742372481", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tf b/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tf index b316db7c3cdf1..b88a672f0047a 100644 --- a/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tf +++ b/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfplan.json b/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfplan.json index 6b73f97951cc6..078f6a63738f8 100644 --- a/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfplan.json +++ b/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfplan.json @@ -10,14 +10,13 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -32,10 +31,8 @@ "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -52,7 +49,7 @@ "type": "coder_metadata", "name": "about_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "daily_cost": 29, "hide": true, @@ -83,7 +80,7 @@ "type": "coder_metadata", "name": "other_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "daily_cost": 20, "hide": true, @@ -135,7 +132,6 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -150,10 +146,8 @@ "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -291,7 +285,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -333,7 +327,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_metadata.about_info", @@ -373,7 +367,7 @@ ] } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_metadata.other_info", @@ -408,7 +402,7 @@ ] } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.about", @@ -432,7 +426,7 @@ ] } ], - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfstate.json b/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfstate.json index 1865d3a6800c2..79b8ec551eb4d 100644 --- a/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfstate.json +++ b/provisioner/terraform/testdata/resource-metadata-duplicate/resource-metadata-duplicate.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,9 +26,8 @@ } ], "env": null, - "id": "23c87093-d384-4b96-899d-6704712e4219", + "id": "febc1e16-503f-42c3-b1ab-b067d172a860", "init_script": "", - "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -43,11 +42,9 @@ "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "58c170c1-c49e-45db-b043-8cbc8b3db075", + "startup_script_behavior": "non-blocking", + "token": "2b609454-ea6a-4ec8-ba03-d305712894d1", "troubleshooting_url": null }, "sensitive_values": { @@ -66,12 +63,12 @@ "type": "coder_metadata", "name": "about_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "daily_cost": 29, "hide": true, "icon": "/icon/server.svg", - "id": "576d6729-a5c0-4bf8-a3b5-0c5f780a69f8", + "id": "0ea63fbe-3e81-4c34-9edc-c2b1ddc62c46", "item": [ { "is_null": false, @@ -86,7 +83,7 @@ "value": "" } ], - "resource_id": "1757927004245485954" + "resource_id": "856574543079218847" }, "sensitive_values": { "item": [ @@ -105,12 +102,12 @@ "type": "coder_metadata", "name": "other_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "daily_cost": 20, "hide": true, "icon": "/icon/server.svg", - "id": "5db76e1b-8a13-4a7d-8b43-3b42c9f8bd31", + "id": "2a367f6b-b055-425c-bdc0-7c63cafdc146", "item": [ { "is_null": false, @@ -119,7 +116,7 @@ "value": "world" } ], - "resource_id": "1757927004245485954" + "resource_id": "856574543079218847" }, "sensitive_values": { "item": [ @@ -139,7 +136,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "1757927004245485954", + "id": "856574543079218847", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/resource-metadata/resource-metadata.tf b/provisioner/terraform/testdata/resource-metadata/resource-metadata.tf index cd46057ce8526..eb9f2eff89877 100644 --- a/provisioner/terraform/testdata/resource-metadata/resource-metadata.tf +++ b/provisioner/terraform/testdata/resource-metadata/resource-metadata.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfplan.json b/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfplan.json index 242387765b956..f3f97e8b96897 100644 --- a/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfplan.json +++ b/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfplan.json @@ -10,14 +10,13 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -32,10 +31,8 @@ "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -52,7 +49,7 @@ "type": "coder_metadata", "name": "about_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "daily_cost": 29, "hide": true, @@ -122,7 +119,6 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -137,10 +133,8 @@ "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -256,7 +250,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -301,7 +295,7 @@ "constant_value": "linux" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "coder_metadata.about_info", @@ -360,7 +354,7 @@ ] } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.about", @@ -384,7 +378,7 @@ ] } ], - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfstate.json b/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfstate.json index 6b3b898313fe4..5089c0b42e3e7 100644 --- a/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfstate.json +++ b/provisioner/terraform/testdata/resource-metadata/resource-metadata.tfstate.json @@ -10,7 +10,7 @@ "type": "coder_agent", "name": "main", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "amd64", "auth": "token", @@ -26,9 +26,8 @@ } ], "env": null, - "id": "4a421808-8453-45e7-b3b2-a5fa26cec189", + "id": "bf7c9d15-6b61-4012-9cd8-10ba7ca9a4d8", "init_script": "", - "login_before_ready": true, "metadata": [ { "display_name": "Process Count", @@ -43,11 +42,9 @@ "order": null, "os": "linux", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "7e044d87-c9ec-4f2c-8418-20b486dcb18a", + "startup_script_behavior": "non-blocking", + "token": "91d4aa20-db80-4404-a68c-a19abeb4a5b9", "troubleshooting_url": null }, "sensitive_values": { @@ -66,12 +63,12 @@ "type": "coder_metadata", "name": "about_info", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "daily_cost": 29, "hide": true, "icon": "/icon/server.svg", - "id": "2ff2535e-f72d-421c-ba12-6b41375ac1a2", + "id": "b96f5efa-fe45-4a6a-9bd2-70e2063b7b2a", "item": [ { "is_null": false, @@ -98,7 +95,7 @@ "value": "squirrel" } ], - "resource_id": "6049201702287328788" + "resource_id": "978725577783936679" }, "sensitive_values": { "item": [ @@ -121,7 +118,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "6049201702287328788", + "id": "978725577783936679", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tf b/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tf index 82e7a6f95694e..fc684a6e583ee 100644 --- a/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tf +++ b/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfplan.json b/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfplan.json index d9d07b61c88f6..46ac62ce6f09e 100644 --- a/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfplan.json +++ b/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "arm64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -68,16 +65,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -136,7 +130,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "f6647ba9-609d-4550-b793-c2f133469f5d", + "id": "b106fb5a-0ab1-4530-8cc0-9ff9a515dff4", "mutable": false, "name": "Example", "option": null, @@ -163,7 +157,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "833e825e-2c0f-4926-a43d-424350dd6c06", + "id": "5b1c2605-c7a4-4248-bf92-b761e36e0111", "mutable": false, "name": "Sample", "option": null, @@ -186,7 +180,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -209,7 +203,7 @@ "constant_value": "windows" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev", @@ -269,7 +263,7 @@ ] } }, - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfstate.json b/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfstate.json index b98f3c92f4fc2..bade7edb803c5 100644 --- a/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfstate.json +++ b/provisioner/terraform/testdata/rich-parameters-order/rich-parameters-order.tfstate.json @@ -17,7 +17,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "32cfe291-cc59-40d2-b803-c964ef844de5", + "id": "3f56c659-fe68-47c3-9765-cd09abe69de7", "mutable": false, "name": "Example", "option": null, @@ -44,7 +44,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "27104b66-f6d8-48f4-b7ae-71c43cfb4041", + "id": "2ecde94b-399a-43c7-b50a-3603895aff83", "mutable": false, "name": "Sample", "option": null, @@ -64,7 +64,7 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "arm64", "auth": "token", @@ -80,19 +80,16 @@ } ], "env": null, - "id": "d6b34cce-30b1-492a-bd29-711b6ddc7517", + "id": "a2171da1-5f68-446f-97e3-1c2755552840", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "0c357437-59e0-47dc-affb-ef54ba3d7108", + "startup_script_behavior": "non-blocking", + "token": "a986f085-2697-4d95-a431-6545716ca36b", "troubleshooting_url": null }, "sensitive_values": { @@ -111,7 +108,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "8977917482017004077", + "id": "5482122353677678043", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tf b/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tf index c05e8d5d4ae32..8067c0fa9337c 100644 --- a/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tf +++ b/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfplan.json b/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfplan.json index 337d0ce71cbe6..1f7a216dc7a3f 100644 --- a/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfplan.json +++ b/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "arm64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -68,16 +65,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -136,7 +130,7 @@ "display_name": null, "ephemeral": true, "icon": null, - "id": "b8837281-b791-4ae7-9d94-d3cab9160882", + "id": "65767637-5ffa-400f-be3f-f03868bd7070", "mutable": true, "name": "number_example", "option": null, @@ -163,7 +157,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "232d3f50-e65b-4f2f-a7c6-fb3d786eddeb", + "id": "d8ee017a-1a92-43f2-aaa8-483573c08485", "mutable": false, "name": "number_example_max", "option": null, @@ -202,7 +196,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "390a692e-3ec1-47ab-8996-95b14f1ecb74", + "id": "1516f72d-71aa-4ae8-95b5-4dbcf999e173", "mutable": false, "name": "number_example_max_zero", "option": null, @@ -241,7 +235,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "57d63acc-9aa8-4d98-bca7-22334b1377d8", + "id": "720ff4a2-4f26-42d5-a0f8-4e5c92b3133e", "mutable": false, "name": "number_example_min", "option": null, @@ -280,7 +274,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "18d4cb51-8e94-466b-8a84-d1155efd9d98", + "id": "395bcef8-1f59-4a4f-b104-f0c4b6686193", "mutable": false, "name": "number_example_min_max", "option": null, @@ -319,7 +313,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "216dc758-c284-49bc-a19e-5c06cd5757f5", + "id": "29b2943d-e736-4635-a553-097ebe51e7ec", "mutable": false, "name": "number_example_min_zero", "option": null, @@ -354,7 +348,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "null": { "name": "null", @@ -377,7 +371,7 @@ "constant_value": "windows" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev", @@ -551,7 +545,7 @@ ] } }, - "timestamp": "2025-02-10T21:13:12Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfstate.json b/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfstate.json index 5b31b360c0357..1580f18bb97d8 100644 --- a/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfstate.json +++ b/provisioner/terraform/testdata/rich-parameters-validation/rich-parameters-validation.tfstate.json @@ -17,7 +17,7 @@ "display_name": null, "ephemeral": true, "icon": null, - "id": "7470533c-7455-4995-97b1-bceacd004850", + "id": "35958620-8fa6-479e-b2aa-19202d594b03", "mutable": true, "name": "number_example", "option": null, @@ -44,7 +44,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "ff24de05-16de-4264-9dfe-d67c959a223b", + "id": "518c5dad-6069-4c24-8e0b-1ee75a52da3b", "mutable": false, "name": "number_example_max", "option": null, @@ -83,7 +83,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "4db6df0b-00d2-4033-9319-5bee3361d48d", + "id": "050653a6-301b-4916-a871-32d007e1294d", "mutable": false, "name": "number_example_max_zero", "option": null, @@ -122,7 +122,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "38994145-a432-41f4-af9b-d7a20719ce7c", + "id": "4704cc0b-6c9d-422d-ba21-c488d780619e", "mutable": false, "name": "number_example_min", "option": null, @@ -161,7 +161,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "340d2cc3-b859-4fa0-838d-1710fe8362a3", + "id": "a8575ac7-8cf3-4deb-a716-ab5a31467e0b", "mutable": false, "name": "number_example_min_max", "option": null, @@ -200,7 +200,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "3a196966-9aa3-4020-8370-111290c45aeb", + "id": "1efc1290-5939-401c-8287-7b8d6724cdb6", "mutable": false, "name": "number_example_min_zero", "option": null, @@ -232,7 +232,7 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "arm64", "auth": "token", @@ -248,19 +248,16 @@ } ], "env": null, - "id": "74d9ae8b-dd7b-4455-a84e-a98e01599125", + "id": "356b8996-c71d-479a-b161-ac3828a1831e", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "2c59f054-2857-4878-b7a5-bccda4c9a86b", + "startup_script_behavior": "non-blocking", + "token": "27611e1a-9de5-433b-81e4-cbd9f92dfe06", "troubleshooting_url": null }, "sensitive_values": { @@ -279,7 +276,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "4058043459007775274", + "id": "7456139785400247293", "triggers": null }, "sensitive_values": {}, diff --git a/provisioner/terraform/testdata/rich-parameters/external-module/child-external-module/main.tf b/provisioner/terraform/testdata/rich-parameters/external-module/child-external-module/main.tf index ac6f4c621a9d0..e8afbbf917fb5 100644 --- a/provisioner/terraform/testdata/rich-parameters/external-module/child-external-module/main.tf +++ b/provisioner/terraform/testdata/rich-parameters/external-module/child-external-module/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } docker = { source = "kreuzwerker/docker" diff --git a/provisioner/terraform/testdata/rich-parameters/external-module/main.tf b/provisioner/terraform/testdata/rich-parameters/external-module/main.tf index 55e942ec24e1f..0cf81d0162d07 100644 --- a/provisioner/terraform/testdata/rich-parameters/external-module/main.tf +++ b/provisioner/terraform/testdata/rich-parameters/external-module/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } docker = { source = "kreuzwerker/docker" diff --git a/provisioner/terraform/testdata/rich-parameters/rich-parameters.tf b/provisioner/terraform/testdata/rich-parameters/rich-parameters.tf index fc85769c8e9cc..24582eac30a5d 100644 --- a/provisioner/terraform/testdata/rich-parameters/rich-parameters.tf +++ b/provisioner/terraform/testdata/rich-parameters/rich-parameters.tf @@ -2,7 +2,7 @@ terraform { required_providers { coder = { source = "coder/coder" - version = "0.22.0" + version = ">=2.0.0" } } } diff --git a/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfplan.json b/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfplan.json index c20daa7105d4b..e6b5b1cab49dd 100644 --- a/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfplan.json +++ b/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfplan.json @@ -10,23 +10,20 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "arm64", "auth": "token", "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "sensitive_values": { @@ -68,16 +65,13 @@ "connection_timeout": 120, "dir": null, "env": null, - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, + "startup_script_behavior": "non-blocking", "troubleshooting_url": null }, "after_unknown": { @@ -136,7 +130,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "b8e482c3-e55e-4587-abb1-a0db57b0f856", + "id": "14d20380-9100-4218-afca-15d066dec134", "mutable": false, "name": "Example", "option": [ @@ -180,7 +174,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "c0b429f3-8621-422a-8655-27727b7b74f4", + "id": "fec66abe-d831-4095-8520-8a654ccf309a", "mutable": false, "name": "number_example", "option": null, @@ -207,7 +201,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "e0f9fa03-2392-4915-8ecb-a23fc612b448", + "id": "9e6cbf84-b49c-4c24-ad71-91195269ec84", "mutable": false, "name": "number_example_max_zero", "option": null, @@ -246,7 +240,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "cedeb060-be8d-4ba2-8b71-efeff24076be", + "id": "5fbb470c-3814-4706-8fa6-c8c7e0f04c19", "mutable": false, "name": "number_example_min_max", "option": null, @@ -285,7 +279,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "beae7c42-5723-4224-80c4-6d507613d32a", + "id": "3790d994-f401-4e98-ad73-70b6f4e577d2", "mutable": false, "name": "number_example_min_zero", "option": null, @@ -324,7 +318,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "e77e3fca-8635-44d3-b3b0-7077dbcaf485", + "id": "26b3faa6-2eda-45f0-abbe-f4aba303f7cc", "mutable": false, "name": "Sample", "option": null, @@ -355,7 +349,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "faef5893-f4a7-4c82-bc7c-2b528adf9164", + "id": "6027c1aa-dae9-48d9-90f2-b66151bf3129", "mutable": true, "name": "First parameter from module", "option": null, @@ -382,7 +376,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "d702a904-19e9-4e67-9bb9-744f440f1cd7", + "id": "62262115-184d-4e14-a756-bedb553405a9", "mutable": true, "name": "Second parameter from module", "option": null, @@ -414,7 +408,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "9252f5d4-b66b-45b4-ba7a-3003423bb7f9", + "id": "9ced5a2a-0e83-44fe-8088-6db4df59c15e", "mutable": true, "name": "First parameter from child module", "option": null, @@ -441,7 +435,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "b988dcc9-e1c9-4146-8cc7-3841b8b7a51d", + "id": "f9564821-9614-4931-b760-2b942d59214a", "mutable": true, "name": "Second parameter from child module", "option": null, @@ -469,7 +463,7 @@ "coder": { "name": "coder", "full_name": "registry.terraform.io/coder/coder", - "version_constraint": "0.22.0" + "version_constraint": ">= 2.0.0" }, "module.this_is_external_module:docker": { "name": "docker", @@ -498,7 +492,7 @@ "constant_value": "windows" } }, - "schema_version": 0 + "schema_version": 1 }, { "address": "null_resource.dev", @@ -794,7 +788,7 @@ } } }, - "timestamp": "2025-02-10T21:13:13Z", + "timestamp": "2025-02-18T10:58:12Z", "applyable": true, "complete": true, "errored": false diff --git a/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfstate.json b/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfstate.json index 90773ac8ee33c..e83a026c81717 100644 --- a/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfstate.json +++ b/provisioner/terraform/testdata/rich-parameters/rich-parameters.tfstate.json @@ -17,7 +17,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "6d1ceefd-1175-494a-beed-f45f83c063a6", + "id": "bfd26633-f683-494b-8f71-1697c81488c3", "mutable": false, "name": "Example", "option": [ @@ -61,7 +61,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "25d7a201-a00a-4e56-aaa2-69e9e0bc3c10", + "id": "53a78857-abc2-4447-8329-cc12e160aaba", "mutable": false, "name": "number_example", "option": null, @@ -88,7 +88,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "c1fac06b-ad1a-4f3b-9a4d-da621b3e922d", + "id": "2ac0c3b2-f97f-47ad-beda-54264ba69422", "mutable": false, "name": "number_example_max_zero", "option": null, @@ -127,7 +127,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "67e3c8a8-bd1c-4b25-9555-12f53113bda6", + "id": "3b06ad67-0ab3-434c-b934-81e409e21565", "mutable": false, "name": "number_example_min_max", "option": null, @@ -166,7 +166,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "9dcf53ba-720d-40d3-bb6f-e0b311eb33de", + "id": "6f7c9117-36e4-47d5-8f23-a4e495a62895", "mutable": false, "name": "number_example_min_zero", "option": null, @@ -205,7 +205,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "3073ed0d-84f4-4f09-b22b-dafae13a675d", + "id": "5311db13-4521-4566-aac1-c70db8976ba5", "mutable": false, "name": "Sample", "option": null, @@ -225,7 +225,7 @@ "type": "coder_agent", "name": "dev", "provider_name": "registry.terraform.io/coder/coder", - "schema_version": 0, + "schema_version": 1, "values": { "arch": "arm64", "auth": "token", @@ -241,19 +241,16 @@ } ], "env": null, - "id": "d85e10ff-8f89-4a61-8664-16eeadf8c3b3", + "id": "2d891d31-82ac-4fdd-b922-25c1dfac956c", "init_script": "", - "login_before_ready": true, "metadata": [], "motd_file": null, "order": null, "os": "windows", "shutdown_script": null, - "shutdown_script_timeout": 300, "startup_script": null, - "startup_script_behavior": null, - "startup_script_timeout": 300, - "token": "8f1f08db-3676-4568-b3c7-aa17f76ff541", + "startup_script_behavior": "non-blocking", + "token": "6942a4c6-24f6-42b5-bcc7-d3e26d00d950", "troubleshooting_url": null }, "sensitive_values": { @@ -272,7 +269,7 @@ "provider_name": "registry.terraform.io/hashicorp/null", "schema_version": 0, "values": { - "id": "8286189170864212220", + "id": "6111468857109842799", "triggers": null }, "sensitive_values": {}, @@ -297,7 +294,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "e5a33071-b0bd-483b-8fb8-2f770e33cad4", + "id": "1adeea93-ddc4-4dd8-b328-e167161bbe84", "mutable": true, "name": "First parameter from module", "option": null, @@ -324,7 +321,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "d32f6615-9ab2-40e0-80a3-a2dee39bd04b", + "id": "4bb326d9-cf43-4947-b26c-bb668a9f7a80", "mutable": true, "name": "Second parameter from module", "option": null, @@ -356,7 +353,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "a596590d-75ce-4255-bd65-241ff9b01517", + "id": "a2b6d1e4-2e77-4eff-a81b-0fe285750824", "mutable": true, "name": "First parameter from child module", "option": null, @@ -383,7 +380,7 @@ "display_name": null, "ephemeral": false, "icon": null, - "id": "e74be7b4-95dd-4f21-b1b4-db69567c28ac", + "id": "9dac8aaa-ccf6-4c94-90d2-2009bfbbd596", "mutable": true, "name": "Second parameter from child module", "option": null,