I need to connect to AWS Elasticsearch service from my Spark app (structured streaming) using AWS access/secret keys. For example, S3 and Spark integration has a way to set access/secret keys in configuration https://docs.databricks.com/spark/latest/data-sources/aws/amazon-s3.html
I cannot find anything equivalent for Elasticsearch. I tried below code but it didn't work.
val writer = input.write
.option("es.nodes",serverUrl)
.option("es.net.https.auth.user", awsAccessKeyId)
.option("es.net.https.auth.pass", awsSecretAccessKey)
.option("es.nodes.wan.only", "true")
.format("org.elasticsearch.spark.sql")
writer.save("index/mapping")
Looks like "es.net.https.auth.xxx" are for basic authentication. I'm looking for AWS specific one. Any information is appreciated!