APM server integration with opensearch

ok, thanks!

I also created an aws Elasticsearch cluster, and it doesn't work as well..
all my requests hit timeout.

output.elasticsearch:
      hosts: [my.elasticserach.domain]
      username: username
      password: password
      protocol: https

Is this the correct config to use?