From 7279386721237ded14581450beb8ca951d9d4acc Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 25 Sep 2023 16:09:36 +0300 Subject: [PATCH] rename version to custom_version --- vscode-web/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vscode-web/main.tf b/vscode-web/main.tf index 2bf6348..c45b999 100644 --- a/vscode-web/main.tf +++ b/vscode-web/main.tf @@ -42,13 +42,13 @@ variable "accept_license" { } } -variable "version" { +variable "custom_version" { type = string description = "The version of VS Code to install." default = "latest" # add a validation block to validate the version is greater than or equal to 1.82.0 validation { - condition = var.version >= "1.82.0" + condition = var.custom_version >= "1.82.0" error_message = "Version must be greater than or equal to 1.82.0" } } @@ -60,7 +60,7 @@ resource "coder_script" "vscode-web" { script = templatefile("${path.module}/run.sh", { PORT : var.port, LOG_PATH : var.log_path, - VERSION : var.version, + VERSION : var.custom_version, }) run_on_start = true }