A terraform module to deploy the prefect agent to any kubernetes cluster using the official helm chart.
Use the set blocks to pass configuration data to the helm chart or provide a values.yaml file. See Helm readme & values file for more information.
module "prefect_agent" {
source = "path/to/prefect-agent"
prefect_cloud_account_id = "xxxxxxxxxxxxxxxxx"
prefect_cloud_workspace_id = "xxxxxxxxxxxxxxxxx"
api_key = "pnu_xxxxxxxxxxxxxxxxx"
}| Name | Version |
|---|---|
| terraform | ~> 1 |
| helm | 2.7.1 |
| kubernetes | 2.14.0 |
| Name | Version |
|---|---|
| helm | 2.7.1 |
| kubernetes | 2.14.0 |
No modules.
| Name | Type |
|---|---|
| helm_release.agent | resource |
| kubernetes_namespace.namespace | resource |
| kubernetes_secret.api_key | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| prefect_cloud_account_id | prefect cloud account ID | string |
n/a | yes |
| prefect_cloud_workspace_id | prefect cloud workspace ID | string |
n/a | yes |
| api_key | provide prefect cloud API key here to create a secret within k8s, otherwise provide the name of an existing secret | string |
null |
no |
| api_key_secret | name & key of k8s secret that contains the prefect cloud API key | object({ |
{ |
no |
| create_namespace | optionally create the namespace to deploy the chart & agent to | bool |
true |
no |
| namespace | namespace to deploy the agent into | string |
"prefect" |
no |
No outputs.