I am trying to build a spring native image with ‘spring-boot-starter-data-elasticsearch’ dependency which uses RestHighLevelClient to interact with elasticsearch.
It turns out I always receive ‘connection refused’ exception. Any idea why this happens?
Note: My application is deployed in AWS Lambda.
Any help is much appreciated. Thanks in advance.