Skip to content

Commit

Permalink
Merge variables into the module file
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-prefect committed Jan 16, 2025
1 parent 685528c commit 2be0fd2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
24 changes: 23 additions & 1 deletion infra/workspaces/modules/workspace/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

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"
}
21 changes: 0 additions & 21 deletions infra/workspaces/modules/workspace/variables.tf

This file was deleted.

0 comments on commit 2be0fd2

Please sign in to comment.