Comments (7)
If you must supply an access key explicitly you can use this constructor. However I recommend supplying credentials to your application via EC2 instance profile or other means. See this guide for more information.
This library uses the AWSSDK's normal means of loading credentials and should work just like other service clients in that library. If you don't supply credentials then it will try to look them up automatically via environment variables, aws profile, and ec2 instance metadata.
from elasticsearch-net-aws.
Thanks for replying so quickly.
I should have said I'm using the AWS Elastic Search service - does this matter?
I have an access policy allowing a particular account (my account) and I'm unsure whether I have to provide my username and password, or whether I need to create an access key/secret?
Thanks again
from elasticsearch-net-aws.
It depends on where you're running your code. If you are going to run on an EC2 instance you can simply assign a role that has access to your Elasticsearch Service domain to the EC2 instance. The same goes for running on AWS Lambda. If you're running from your local computer then you will need to use an access key. You can supply the access key to your application in few different ways described in this guide
from elasticsearch-net-aws.
I am going to be calling the Elasticsearch service from Azure functions so I think I'll need to use the constructor.
I just had a look at the documentation but it's not clear how I should create the credentials for my use case.
Edit: I just found this document which shows AWSCredentials subclasses
from elasticsearch-net-aws.
If you're using Azure this library won't work for. This will only work for Amazon AWS.
from elasticsearch-net-aws.
Thanks for letting me know -I didn't know that and should have mentioned Azure sooner...
from elasticsearch-net-aws.
You're welcome.
from elasticsearch-net-aws.
Related Issues (20)
- Elasticsearch.Net v7 Support
- Started receiving 403 for a specific application with message about request signature HOT 3
- 7.0.0 - code not being signed HOT 8
- please release a version for .net target framework 4.7 HOT 2
- v6.1.0 Not Working With .NET Standard 2.0 HOT 1
- Issue with default AWS credentials and roles HOT 3
- AWS Credentials is null HOT 3
- how to setup .net 3.x aws connection HOT 2
- Suggestion HOT 1
- AWS4Signer HOT 1
- AWS Dependencies Issue HOT 2
- Any way to use this package with the latest version of Elasticsearch NEST? HOT 2
- Enabling Request/Response Causes Signature to be Rejected HOT 2
- AWS Dependency Issue HOT 3
- I want to fork but can't build due to missing key.snk public key HOT 2
- Authorization Header not passed in Request
- OpenSearch Serverless HOT 2
- Just updating from Elasticsearch.Net.Aws 7.2.1 to 7.2.2, causes 403 from AWS OpenSearch cluster HOT 6
- Highlight error with only 2 characters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-net-aws.