Node.js AWS Elasticsearch使用凭据通过节点进行访问
由于我的ec2实例具有IAM角色访问权限,因此我一直在使用此代码从我的ec2实例访问我的AWS弹性搜索服务器Node.js AWS Elasticsearch使用凭据通过节点进行访问,node.js,amazon-web-services,elasticsearch,aws-elasticsearch,Node.js,Amazon Web Services,elasticsearch,Aws Elasticsearch,由于我的ec2实例具有IAM角色访问权限,因此我一直在使用此代码从我的ec2实例访问我的AWS弹性搜索服务器 const { Client } = require('@elastic/elasticsearch') const client = new Client({ node: https://some_elasticsearch_endpoint.xxxxxx }); 现在,我们正在移动并确保它们可以通过密钥访问 如何使用@elastic/elasticsearchnpm模块生成客户端对
const { Client } = require('@elastic/elasticsearch')
const client = new Client({ node: https://some_elasticsearch_endpoint.xxxxxx });
现在,我们正在移动并确保它们可以通过密钥访问
如何使用@elastic/elasticsearch
npm模块生成客户端对象,以使用AWS creds访问ES服务器
谢谢