Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Prefect Agent Helm Terraform module


Description

A terraform module to deploy the prefect agent to any kubernetes cluster using the official helm chart.

Usage

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"
}

Requirements

Name Version
terraform ~> 1
helm 2.7.1
kubernetes 2.14.0

Providers

Name Version
helm 2.7.1
kubernetes 2.14.0

Modules

No modules.

Resources

Name Type
helm_release.agent resource
kubernetes_namespace.namespace resource
kubernetes_secret.api_key resource

Inputs

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({
secret_name = string
secret_key = string
})
{
"secret_key": "key",
"secret_name": "prefect-api-key"
}
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

Outputs

No outputs.