Open debugger24 opened 2 weeks ago
It doesn't support multiple yamls. Use this pattern
data "kubectl_file_documents" "docs" {
content = file("multi-doc-manifest.yaml")
}
resource "kubectl_manifest" "test" {
for_each = data.kubectl_file_documents.docs.manifests
yaml_body = each.value
}
Thanks @alekc let me try this..
I have yaml with multiple resource only first resource is applied.
Here is the state file content.
yaml_body
we have 2 resourceyaml_body_parsed
have only first resourceThis happened with multiple YAML files.