-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e2ed82
commit 62cc4ce
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Prefect Work Queues can be imported using work_pool_name,work_queue_name,workspace_id | ||
terraform import prefect_work_queue.example kubernetes-work-pool,my-work-queue,00000000-0000-0000-0000-000000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
resource "prefect_workspace" "example" { | ||
handle = "my-workspace" | ||
name = "my-workspace" | ||
} | ||
|
||
resource "prefect_work_pool" "example" { | ||
name = "my-work-pool" | ||
type = "kubernetes" | ||
paused = false | ||
workspace_id = prefect_workspace.example.id | ||
} | ||
|
||
resource "prefect_work_queue" "example" { | ||
name = "my-work-queue" | ||
description = "My work queue" | ||
concurrency_limit = 2 | ||
workspace_id = prefect_workspace.example.id | ||
} |