title: Terraform is successful but I can not find resource
body: <p>I'm trying to setup my AWS EKS cluster via terraform and I'm having issues with creating resources within the EKS cluster. My cluster is created and I was able to create node groups using <code>aws_eks_node_group</code>. However, when I attempt to create <code>kubernetes_daemonset</code> and <code>kubernetes_namespace</code> the terraform is successful and says that the resources were created, but I do not see them in the console. I can view the node groups in this cluster and when I route to another cluster I can view the namespaces and daemonsets, so it's not a permissions issue.</p>
  <p>Terraform output</p>
  <pre><code>[docker] [deploy-terraform] [terraform apply] kubernetes_namespace.jupyterhub: Creation complete after 0s [id=jupyterhub]
  </code></pre>
  <pre><code>[docker] [deploy-terraform] [terraform apply] kubernetes_daemon_set_v1.example: Creation complete after 0s [id=kube-system/nvidia-device-plugin-daemonset-0.9.0]
  </code></pre>
  <p>TF resources</p>
  <pre><code>data &quot;aws_eks_cluster&quot; &quot;cluster&quot; {
    name = module.eks.cluster_id
  }
  
  provider &quot;kubernetes&quot; {
    host                   = data.aws_eks_cluster.cluster.endpoint
    cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority.0.data)
    exec {
      api_version = &quot;client.authentication.k8s.io/v1alpha1&quot;
      command     = &quot;aws&quot;
      args = [
        &quot;eks&quot;,
        &quot;get-token&quot;,
        &quot;--cluster-name&quot;,
        data.aws_eks_cluster.cluster.name
      ]
    }
  
  }
  
  resource &quot;kubernetes_daemonset&quot; &quot;nvidia-device-plugin&quot; {
    metadata {
      name      = &quot;nvidia-device-plugin-daemonset-0.9.0&quot;
      namespace = &quot;kube-system&quot;
    }
    spec {
      selector {
        match_labels = { name : &quot;nvidia-device-plugin-ds&quot; }
      }
      template {
        metadata {
          labels = {
            name = &quot;nvidia-device-plugin-ds&quot;
          }
        }
        spec {
          toleration {
            key      = &quot;nvidia.com/gpu&quot;
            operator = &quot;Exists&quot;
            effect   = &quot;NoSchedule&quot;
          }
          toleration {
            key      = &quot;hub.jupyter.org/dedicated&quot;
            operator = &quot;Exists&quot;
            effect   = &quot;NoSchedule&quot;
          }
          container {
            image = &quot;nvcr.io/nvidia/k8s-device-plugin:v0.9.0&quot;
            name  = &quot;nvidia-device-plugin-ctr&quot;
            security_context {
              allow_privilege_escalation = false
              capabilities {
                drop = [&quot;ALL&quot;]
              }
            }
  
            volume_mount {
              name       = &quot;device-plugin&quot;
              mount_path = &quot;/var/lib/kubelet/device-plugins&quot;
            }
  
          }
          volume {
            name = &quot;device-plugin&quot;
            host_path {
              path = &quot;/var/lib/kubelet/device-plugins&quot;
            }
          }
          affinity {
            node_affinity {
              required_during_scheduling_ignored_during_execution {
                node_selector_term {
                  match_expressions {
                    key      = &quot;beta.kubernetes.io/instance-type&quot;
                    operator = &quot;In&quot;
                    values   = [&quot;p2.xlarge&quot;]
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
  resource &quot;kubernetes_namespace&quot; &quot;jupyterhub&quot; {
    metadata {
      name = &quot;jupyterhub&quot;
      labels = {
        name = &quot;jupyterhub&quot;
      }
    }
  }
  
  ``
  </code></pre>