resource "kubernetes_namespace" "certmanager" { depends_on = [ time_sleep.wait_for_kubernetes ] metadata { name = "certmanager" } } resource "helm_release" "certmanager" { depends_on = [ kubernetes_namespace.certmanager ] name = "certmanager" namespace = "certmanager" repository = "https://charts.jetstack.io" chart = "cert-manager" # Install Kubernetes CRDs set { name = "installCRDs" value = "true" } } resource "time_sleep" "wait_for_certmanager" { depends_on = [ helm_release.certmanager ] create_duration = "10s" } # Create a ClusterIssuer resource "kubectl_manifest" "cloudflare_prod" { depends_on = [ time_sleep.wait_for_certmanager ] # TODO: add your mail address according to your configuration and API authentication settings! # --- yaml_body = <