I try to import the logging config as kubernetes_maifest
kubectl get --show-kind --context playground clusteroutputs --all-namespaces
NAMESPACE NAME ACTIVE PROBLEMS
cattle-logging-system clusteroutput.logging.banzaicloud.io/cluster-output-splunk true
The respective .tf looks like this
resource "kubernetes_manifest" "cluster-output-splunk" {
manifest = {
"apiVersion" = "logging.banzaicloud.io/v1beta1"
"kind" = "ClusterOutput"
"metadata" = {
"name" = "cluster-output-splunk"
"namespace" = "cattle-logging-system"
}
...
However, the import complains:
terraform import kubernetes_manifest.cluster-output-splunk "apiVersion=logging.banzaicloud.io/v1beta1,kind=ClusterOutput,namespace=cattle-logging-system,name=cluster-output-splunk"
kubernetes_manifest.cluster-output-splunk: Importing from ID "apiVersion=logging.banzaicloud.io/v1beta1,kind=ClusterOutput,namespace=cattle-logging-system,name=cluster-output-splunk"...
╷
│ Error: Failed to get resource {Object:map[apiVersion:logging.banzaicloud.io/v1beta1 kind:ClusterOutput metadata:map[name:cluster-output-splunk namespace:cattle-logging-system]]} from API
│
│ clusteroutputs.logging.banzaicloud.io "cluster-output-splunk" not found
╵