"No alive nodes found in your cluster" using aws elasticsearch · Issue #408 · elastic/elasticsearch-php

I'm trying to connect to amazon elasticsearch endpoint and get the error "No alive nodes found in your cluster" using the version 2.0 of elasticsearch-php, this is my code: $host = ["http://amazon-...