Skip to content

Commit

Permalink
Updated user guide to include Amazon OpenSearch Serverless (opensearc…
Browse files Browse the repository at this point in the history
…h-project#372)

Signed-off-by: saimedhi <saimedhi@amazon.com>

Signed-off-by: saimedhi <saimedhi@amazon.com>
(cherry picked from commit 18615d9)
  • Loading branch information
saimedhi authored and harshavamsi committed Feb 23, 2023
1 parent fbbfed4 commit a360704
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions USER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
});
```

Expand All @@ -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.
Expand All @@ -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
});
```

Expand Down

0 comments on commit a360704

Please sign in to comment.