AWS OpenSearch Service. Request failed: [security_exception] authentication/authorization failure
I'm trying to use OpenSearch to connect to my OpenSearch domain on AWS. I set env for AWS. However, I'm encountering an authentication/authorization failure. Here's my code: public class Example { public static void main(final String[] args) throws IOException { SdkHttpClient httpClient = ApacheHttpClient.builder().build(); try { OpenSearchClient client = new OpenSearchClient( new AwsSdk2Transport( httpClient, "search-*****-3ovub4o4gncugluu6t2tquptnu.eu-central-1.es.amazonaws.com", Region.EU_CENTRAL_1, AwsSdk2TransportOptions.builder().build())); InfoResponse info = client.info(); System.out.p
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.