Filebeat.autodiscover seems to cause terraform/kubernetes based deploy issues

I wrote up a yml based deploy to handle added a filebeat pod to each node in our EKS Cluster. When deploying the following config the pods are up and running with logs getting sent to elasticsearch.

However I went to re-implement this with Terraform, for which I have the following two files. One to deploy the configmap.

And a the contents of the config file is pointing to.

Using the terraform deploy causes the pods to crash with the following error:

2020-01-10T18:20:49.260Z	ERROR	instance/beat.go:916	Exiting: error in autodiscover provider settings: error setting up kubernetes autodiscover provider: unable to build kube config due to error: invalid configuration: no configuration has been provided
Exiting: error in autodiscover provider settings: error setting up kubernetes autodiscover provider: unable to build kube config due to error: invalid configuration: no configuration has been provided

Are there any thoughts as to why this would occur? It only seems to be an issue when using the filebeat.autodiscover module.

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.