diff --git a/USER_GUIDE.md b/USER_GUIDE.md index 289c10243..aa2f859b0 100644 --- a/USER_GUIDE.md +++ b/USER_GUIDE.md @@ -50,7 +50,8 @@ const { AwsSigv4Signer } = require('@opensearch-project/opensearch/aws'); const client = new Client({ ...AwsSigv4Signer({ - region: 'us-east-1', + region: 'us-west-2', + service: 'es', // 'aoss' for OpenSearch Serverless // Must return a Promise that resolve to an AWS.Credentials object. // This function is used to acquire the credentials when the client start and // when the credentials are expired. @@ -70,7 +71,8 @@ const client = new Client({ }); }), }), - node: "https://search-xxx.region.es.amazonaws.com", // OpenSearch domain URL + node: 'https://search-xxx.region.es.amazonaws.com', // OpenSearch domain URL + // node: "https://xxx.region.aoss.amazonaws.com" for OpenSearch Serverless }); ``` @@ -84,6 +86,7 @@ const { AwsSigv4Signer } = require('@opensearch-project/opensearch/aws'); const client = new Client({ ...AwsSigv4Signer({ region: 'us-east-1', + service: 'es', // 'aoss' for OpenSearch Serverless // Must return a Promise that resolve to an AWS.Credentials object. // This function is used to acquire the credentials when the client start and // when the credentials are expired. @@ -97,7 +100,8 @@ const client = new Client({ return credentialsProvider(); }, }), - node: "https://search-xxx.region.es.amazonaws.com", // OpenSearch domain URL + node: 'https://search-xxx.region.es.amazonaws.com', // OpenSearch domain URL + // node: "https://xxx.region.aoss.amazonaws.com" for OpenSearch Serverless }); ```