title: How do I apply a CRD from github to a cluster with terraform?
body: <p>I want to install a CRD with terraform, I was hoping it would be easy as doing this:</p>
  <pre><code>data &quot;http&quot; &quot;crd&quot; {
    url = &quot;https://raw.githubusercontent.com/kubernetes-sigs/application/master/deploy/kube-app-manager-aio.yaml&quot;
    request_headers = {
      Accept = &quot;text/plain&quot;
    }
  }
  
  resource &quot;kubernetes_manifest&quot; &quot;install-crd&quot; {
    manifest = data.http.crd.body
  }
  </code></pre>
  <p>But I get this error:</p>
  <pre><code>can't unmarshal tftypes.String into *map[string]tftypes.Value, expected
  map[string]tftypes.Value
  </code></pre>
  <p>Trying to convert it to yaml with <code>yamldecode</code> also doesn't work because <code>yamldecode</code> doesn't support multi-doc yaml files.</p>
  <p>I could use exec, but I was already doing that while waiting for the <code>kubernetes_manifest</code> resource to be released. Does <code>kubernetes_manifest</code> only support a single resource or can it be used to create several from a raw text manifest file?</p>