title: What's the equivalent of "kubernetes apply -k" in terraform?
body: <p>I want to use EFS in my EKS cluster. I'm following this <a href="https://www.eksworkshop.com/beginner/190_efs/" rel="nofollow noreferrer">eks workshop</a>.</p>
  <p>I need to deploy <code>EFS CSI Driver</code> using kustomize:</p>
  <pre><code>kubectl apply -k &quot;github.com/kubernetes-sigs/aws-efs-csi-driver/deploy/kubernetes/overlays/stable/?ref=release-1.0&quot;
  </code></pre>
  <p>What's the equivalent of the above command in terraform?</p>
  <p>Is it something like this?</p>
  <pre><code>terraform {
    required_providers {
      kustomization = {
        source  = &quot;kbst/kustomize&quot;
        version = &quot;0.2.0-beta.3&quot;
      }
    }
    required_version = &quot;&gt;= 0.12&quot;
  }
  
  provider &quot;kustomization&quot; {}
  
  data &quot;kustomization&quot; &quot;test&quot; {
    provider = kustomization
  
    path = &quot;github.com/kubernetes-sigs/aws-efs-csi-driver/deploy/kubernetes/overlays/stable/?ref=release-1.0&quot;
  }
  
  resource &quot;kustomization_resource&quot; &quot;test&quot; {
    provider = kustomization
  
    for_each = data.kustomization.test.ids
  
    manifest = data.kustomization.test.manifests[each.value]
  }
  </code></pre>