From 2be0fd2d7b574479f789666da9629ddb016d2b18 Mon Sep 17 00:00:00 2001 From: Daniel Sauble Date: Thu, 16 Jan 2025 09:52:33 -0800 Subject: [PATCH] Merge variables into the module file --- infra/workspaces/modules/workspace/main.tf | 24 ++++++++++++++++++- .../workspaces/modules/workspace/variables.tf | 21 ---------------- 2 files changed, 23 insertions(+), 22 deletions(-) delete mode 100644 infra/workspaces/modules/workspace/variables.tf diff --git a/infra/workspaces/modules/workspace/main.tf b/infra/workspaces/modules/workspace/main.tf index 3d60652..13a5229 100644 --- a/infra/workspaces/modules/workspace/main.tf +++ b/infra/workspaces/modules/workspace/main.tf @@ -16,4 +16,26 @@ resource "prefect_work_pool" "default" { name = var.work_pool_name workspace_id = prefect_workspace.workspace.id type = var.work_pool_type -} \ No newline at end of file +} + +variable "workspace_name" { + type = string + description = "Name of the Prefect workspace" +} + +variable "workspace_handle" { + type = string + description = "Handle (slug) for the Prefect workspace" +} + +variable "work_pool_name" { + type = string + description = "Name of the default work pool" + default = "my-work-pool" +} + +variable "work_pool_type" { + type = string + description = "Type of the work pool" + default = "docker" +} diff --git a/infra/workspaces/modules/workspace/variables.tf b/infra/workspaces/modules/workspace/variables.tf deleted file mode 100644 index 27c7f61..0000000 --- a/infra/workspaces/modules/workspace/variables.tf +++ /dev/null @@ -1,21 +0,0 @@ -variable "workspace_name" { - type = string - description = "Name of the Prefect workspace" -} - -variable "workspace_handle" { - type = string - description = "Handle (slug) for the Prefect workspace" -} - -variable "work_pool_name" { - type = string - description = "Name of the default work pool" - default = "my-work-pool" -} - -variable "work_pool_type" { - type = string - description = "Type of the work pool" - default = "docker" -} \ No newline at end of file