generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs-refactor
- Loading branch information
Showing
3 changed files
with
58 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,34 @@ resource "astro_deployment" "hybrid" { | |
}] | ||
} | ||
resource "astro_deployment" "hybrid_celery" { | ||
original_astro_runtime_version = "11.3.0" | ||
name = "my hybrid celery deployment" | ||
description = "an example deployment with celery executor" | ||
type = "HYBRID" | ||
cluster_id = "clnp86ly5000401ndagu20g81" | ||
contact_emails = ["[email protected]"] | ||
executor = "CELERY" | ||
is_cicd_enforced = true | ||
is_dag_deploy_enabled = true | ||
scheduler_replicas = 1 | ||
scheduler_au = 5 | ||
workspace_id = "clnp86ly5000401ndaga20g81" | ||
environment_variables = [{ | ||
key = "key1" | ||
value = "value1" | ||
is_secret = false | ||
}] | ||
worker_queues = [{ | ||
name = "default" | ||
is_default = true | ||
node_pool_id = "clnp86ly5000301ndzfxz895w" | ||
max_worker_count = 10 | ||
min_worker_count = 0 | ||
worker_concurrency = 1 | ||
}] | ||
} | ||
// Import an existing deployment | ||
import { | ||
id = "clv17vgft000801kkydsws63x" // ID of the existing deployment | ||
|
@@ -147,7 +175,7 @@ resource "astro_deployment" "imported_deployment" { | |
- `scheduler_replicas` (Number) Deployment scheduler replicas - required for 'HYBRID' deployments | ||
- `scheduler_size` (String) Deployment scheduler size - required for 'STANDARD' and 'DEDICATED' deployments | ||
- `task_pod_node_pool_id` (String) Deployment task pod node pool identifier - required if executor is 'KUBERNETES' and type is 'HYBRID' | ||
- `worker_queues` (Attributes Set) Deployment worker queues - required for deployments with 'CELERY' executor (see [below for nested schema](#nestedatt--worker_queues)) | ||
- `worker_queues` (Attributes Set) Deployment worker queues - required for deployments with 'CELERY' executor. For 'STANDARD' and 'DEDICATED' deployments, use astro_machine. For 'HYBRID' deployments, use node_pool_id. (see [below for nested schema](#nestedatt--worker_queues)) | ||
|
||
### Read-Only | ||
|
||
|
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 |
---|---|---|
|
@@ -74,6 +74,34 @@ resource "astro_deployment" "hybrid" { | |
}] | ||
} | ||
|
||
resource "astro_deployment" "hybrid_celery" { | ||
original_astro_runtime_version = "11.3.0" | ||
name = "my hybrid celery deployment" | ||
description = "an example deployment with celery executor" | ||
type = "HYBRID" | ||
cluster_id = "clnp86ly5000401ndagu20g81" | ||
contact_emails = ["[email protected]"] | ||
executor = "CELERY" | ||
is_cicd_enforced = true | ||
is_dag_deploy_enabled = true | ||
scheduler_replicas = 1 | ||
scheduler_au = 5 | ||
workspace_id = "clnp86ly5000401ndaga20g81" | ||
environment_variables = [{ | ||
key = "key1" | ||
value = "value1" | ||
is_secret = false | ||
}] | ||
worker_queues = [{ | ||
name = "default" | ||
is_default = true | ||
node_pool_id = "clnp86ly5000301ndzfxz895w" | ||
max_worker_count = 10 | ||
min_worker_count = 0 | ||
worker_concurrency = 1 | ||
}] | ||
} | ||
|
||
// Import an existing deployment | ||
import { | ||
id = "clv17vgft000801kkydsws63x" // ID of the existing deployment | ||
|
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