Elasticsearch.Net.Aws
6.0.0
Enables request signing necessary for using the AWS Elasticsearch service.
See the version list below for details.
Install-Package Elasticsearch.Net.Aws -Version 6.0.0
dotnet add package Elasticsearch.Net.Aws --version 6.0.0
<PackageReference Include="Elasticsearch.Net.Aws" Version="6.0.0" />
paket add Elasticsearch.Net.Aws --version 6.0.0
#r "nuget: Elasticsearch.Net.Aws, 6.0.0"
Elasticsearch Net for Amazon AWS
Add-on to elasticsearch-net / NEST for using AWS's elasticsearch service.
Install Package
# For ElasticSearch.Net >= 2.0.2
Install-Package Elasticsearch.Net.Aws
# For ElasticSearch.Net = 1.7.1
Install-Package Elasticsearch.Net.Aws-v1
Setup
Elasticsearch.Net Version >= 2.0.2
Use Package Elasticsearch.Net.Aws
// for NEST
// if using an access key
var httpConnection = new AwsHttpConnection("us-east-1", new StaticCredentialsProvider(new AwsCredentials
{
AccessKey = "My AWS access key",
SecretKey = "My AWS secret key",
}));
// if using app.config, environment variables, or roles
var httpConnection = new AwsHttpConnection("us-east-1");
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
var config = new ConnectionSettings(pool, httpConnection);
var client = new ElasticClient(config);
Elasticsearch.Net Version 1.7.1
Use Package Elasticsearch.Net.Aws-v1
Source for this version is maintained on the version-1 branch
// for NEST
var client = new ElasticClient(settings, connection: new AwsHttpConnection(settings, new AwsSettings
{
AccessKey = "My AWS access key",
SecretKey = "My AWS secret key",
Region = "us-east-1",
}));
The AwsHttpConnection
class is an implemenation of IConnection
that will sign the HTTP requests according to the Version 4 Signing Process.
Serilog Sink Setup
const string esUrl = "https://aws-es-thinger.us-west-1.es.amazonaws.com";
Log.Logger = new LoggerConfiguration()
.WriteTo.Elasticsearch(new ElasticsearchSinkOptions(new Uri(esUrl))
{
ModifyConnectionSettings = conn =>
{
var httpConnection = new AwsHttpConnection("us-east-1");
var pool = new SingleNodeConnectionPool(new Uri(esUrl));
return new ConnectionConfiguration(pool, httpConnection);
}
})
.CreateLogger();
Elasticsearch Net for Amazon AWS
Add-on to elasticsearch-net / NEST for using AWS's elasticsearch service.
Install Package
# For ElasticSearch.Net >= 2.0.2
Install-Package Elasticsearch.Net.Aws
# For ElasticSearch.Net = 1.7.1
Install-Package Elasticsearch.Net.Aws-v1
Setup
Elasticsearch.Net Version >= 2.0.2
Use Package Elasticsearch.Net.Aws
// for NEST
// if using an access key
var httpConnection = new AwsHttpConnection("us-east-1", new StaticCredentialsProvider(new AwsCredentials
{
AccessKey = "My AWS access key",
SecretKey = "My AWS secret key",
}));
// if using app.config, environment variables, or roles
var httpConnection = new AwsHttpConnection("us-east-1");
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
var config = new ConnectionSettings(pool, httpConnection);
var client = new ElasticClient(config);
Elasticsearch.Net Version 1.7.1
Use Package Elasticsearch.Net.Aws-v1
Source for this version is maintained on the version-1 branch
// for NEST
var client = new ElasticClient(settings, connection: new AwsHttpConnection(settings, new AwsSettings
{
AccessKey = "My AWS access key",
SecretKey = "My AWS secret key",
Region = "us-east-1",
}));
The AwsHttpConnection
class is an implemenation of IConnection
that will sign the HTTP requests according to the Version 4 Signing Process.
Serilog Sink Setup
const string esUrl = "https://aws-es-thinger.us-west-1.es.amazonaws.com";
Log.Logger = new LoggerConfiguration()
.WriteTo.Elasticsearch(new ElasticsearchSinkOptions(new Uri(esUrl))
{
ModifyConnectionSettings = conn =>
{
var httpConnection = new AwsHttpConnection("us-east-1");
var pool = new SingleNodeConnectionPool(new Uri(esUrl));
return new ConnectionConfiguration(pool, httpConnection);
}
})
.CreateLogger();
Release Notes
Support for named instance profiles
Dependencies
-
.NETFramework 4.5
- AWSSDK.Core (>= 3.3.17.9)
- Elasticsearch.Net (>= 6.0.1)
- Newtonsoft.Json (>= 9.0.1)
-
.NETStandard 1.3
- AWSSDK.Core (>= 3.3.17.9)
- Elasticsearch.Net (>= 6.0.1)
- Microsoft.AspNetCore.WebUtilities (>= 1.1.2)
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 9.0.1)
Used By
NuGet packages (10)
Showing the top 5 NuGet packages that depend on Elasticsearch.Net.Aws:
Package | Downloads |
---|---|
corest
Package Description
|
|
FloES
FloES is a generic wrapper for common Elasticsearch operations, such as writing, finding, searching, listing and paginating documents. Uses Nest & Elasticsearch.Net.AWS, and includes ILogger support
|
|
GrandEuropeanTravel.Vacation.DataAccess
Allows for external vacation data access
|
|
StockportGovUK.AspNetCore.Logging.Elasticsearch.Aws
Package Description
|
|
MhLabs.AwsTracedESConnection
Package Description
|
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
7.0.6 | 5,346 | 1/29/2021 |
7.0.5 | 155,488 | 8/21/2020 |
7.0.4 | 284,816 | 11/18/2019 |
7.0.3 | 1,070 | 11/13/2019 |
7.0.2 | 34,812 | 10/23/2019 |
7.0.1 | 17,145 | 10/9/2019 |
7.0.0 | 74,913 | 7/1/2019 |
7.0.0-beta1 | 215 | 6/19/2019 |
6.1.2 | 41,696 | 10/28/2019 |
6.1.0 | 379,767 | 1/17/2019 |
6.0.0 | 320,644 | 2/28/2018 |
2.4.0 | 208,000 | 11/30/2017 |
2.3.7 | 79,322 | 9/21/2017 |
2.3.6 | 57,591 | 8/11/2017 |
2.3.5 | 595 | 8/11/2017 |
2.3.4 | 59,220 | 5/2/2017 |
2.3.3 | 31,114 | 1/10/2017 |
2.3.2 | 906 | 1/10/2017 |
2.3.1 | 743 | 1/10/2017 |
2.3.0 | 554 | 1/9/2017 |
2.2.0 | 4,013 | 12/5/2016 |
2.1.4 | 8,971 | 10/18/2016 |
2.1.3 | 3,356 | 9/13/2016 |
2.1.2 | 2,286 | 8/1/2016 |
2.1.1 | 6,979 | 3/28/2016 |
2.1.0 | 721 | 3/10/2016 |
2.0.0 | 653 | 2/19/2016 |
1.2.1 | 1,873 | 1/27/2016 |
1.2.0 | 808 | 1/8/2016 |
1.1.0 | 633 | 1/4/2016 |
1.0.0 | 2,100 | 10/20/2015 |