christianlempa-boilerplates/terraform/templates/kubernetes-automation-example/cloudflare.tf
2022-04-01 09:25:19 +02:00

21 lines
351 B
HCL

# Cloudflare DNS records and API Secret
resource "kubernetes_secret" "cloudflare_api_key_secret" {
depends_on = [
kubernetes_namespace.certmanager
]
metadata {
name = "cloudflare-api-key-secret"
namespace = "certmanager"
}
data = {
api-key = var.cloudflare_api_key
}
type = "Opaque"
}