In terraform plan we are getting the below error in an all-in-one.YAML file for the elastic search ( which is present in the gitlab repo URL pinned above).
Error:
Error in function call on kubernetes.tf line 49, in locals: 49: resource_list = yamldecode(file("${path.module}/all-in-one.yaml")).items
|---------------- | path.module is “.”
Call to function “yamldecode” failed: on line 458, column 1: unexpected extra content after value.
Here we are setting up the GKE kubernetes cluster and when after setting it up with terraform scripts i am trying to set up the kubernetes Elastic Search over the GKE cluster with the kubectl external provider and getting the above mention error while running that above mentioned YAML file.
As far as I know, yamldecode only supports one YAML “document” per file. The --- notation indicates the start of a second document - you will need to split that out into a separate file to use with yamldecode.
Do you really think that will be the case?
i am too not sure but let me surely try to execute your point by trying it for one documet per file. after that will let you know the status.
Thanks for the help @aareet Appreciated