I am trying to connect to the configured Elasticsearchservice instance in AWS from my machine and getting the following error. Any help is appreciated.

ven@ven:~$ sudo metricbeat setup

Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch https://search-Ven-demo-sjlkajsdlkajsdasdas.us-east-2.es.amazonaws.com:9200: Get https://search-Ven-demo-sjlkajsdlkajsdasdas.us-east-2.es.amazonaws.com:9200: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)]