How to connect to AWS ElasticSearch using npm elasticsearch and http-aws-es?
I was able to solve this by specifying the region. There is a problem with the elasticsearch client where it's not able to the pick the region which we specify in
amazonES: { region: 'us-east-1', credentials: new AWS.Credentials('my-access-key','my-secret-key') }}
I solved it by specifying the region using AWS.config.region before the above code
AWS.config.region = 'us-east-1';