DEPRECATED MOVED TO https://registry.terraform.io/modules/terraform-iaac/cert-manager/kubernetes/latest
1. (Terraform 0.12) Install custom provider from templates/kubectl-plugin.sh
bash: '/bin/bash terraform_k8s_cert_manager/templates/kubectl-plugin.sh'
2. Add provider configuration to terraform (The provider supports the same configuration parameters as the Kubernetes Terraform Provider )
provider "kubectl" {
host = var.eks_cluster_endpoint
cluster_ca_certificate = base64decode(var.eks_cluster_ca)
token = data.aws_eks_cluster_auth.main.token
load_config_file = false
}
(Terraform 0.13)
kubectl = {
source = "gavinbunney/kubectl"
}
cert-manager.io/cluster-issuer: CLUSTER_ISSUER_NAME #(Default: cert-manager)
Custom Provider: https://gavinbunney.github.io/terraform-provider-kubectl/docs/provider.html
Cert Manager Version: v1.0.3
Source: https://github.com/jetstack/cert-manager
Tutorials: https://cert-manager.io/docs/