christianlempa-boilerplates/terraform/templates/kubernetes-automation-example/cloudflare.tf

21 lines
351 B
Terraform
Raw Normal View History

2022-04-01 09:25:19 +02:00
# Cloudflare DNS records and API Secret
2022-03-16 17:54:10 +01:00
resource "kubernetes_secret" "cloudflare_api_key_secret" {
2022-04-01 09:25:19 +02:00
depends_on = [
kubernetes_namespace.certmanager
]
2022-03-16 17:54:10 +01:00
metadata {
name = "cloudflare-api-key-secret"
2022-03-17 13:09:48 +01:00
namespace = "certmanager"
2022-03-16 17:54:10 +01:00
}
data = {
2022-03-17 13:09:48 +01:00
api-key = var.cloudflare_api_key
2022-03-16 17:54:10 +01:00
}
type = "Opaque"
2022-04-01 09:25:19 +02:00
}