Unable to setup elastic cluster

Please try to reformat your input as code. This improves readability a lot.

As a side note: Don't start with security/tls right away. If you're not used to working with Elasticsearch this adds an extra layer of complexity. Try it with a test setup and when you gathered some experience, use that to set up the production cluster.

This looks like you enable ssl but did not provide any certificates.