terraform destory -target RESOURCE_TYPE.RESOURCE_NAME
To get the certificate from the cluster in AWS run
kubectl get secrets
kubectl get secret <secret name> -o jsonpath="{['data']['ca\.crt']}" | base64 --decode
Creating EKS cluster with terraform. Credit to hashicorp's fantastic documentation
HCL
terraform destory -target RESOURCE_TYPE.RESOURCE_NAME
To get the certificate from the cluster in AWS run
kubectl get secrets
kubectl get secret <secret name> -o jsonpath="{['data']['ca\.crt']}" | base64 --decode