APM Server -> AWS Elasticsearch Service: "cannot retrieve the elasticsearch license: unauthorized access, could not connect to the xpack endpoint, verify your credentials"

This thread seems to say that it's possible just by putting in the hostname of the aws instance and proper port.

Has that compatibility been lost along the way?