Elasticsearch.Net.Aws 6.0.0

Enables request signing necessary for using the AWS Elasticsearch service.

There is a newer version of this package available.
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" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Elasticsearch.Net.Aws --version 6.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
7.0.3 18 11/13/2019
7.0.2 2,393 10/23/2019
7.0.1 4,434 10/9/2019
7.0.0 20,465 7/1/2019
7.0.0-beta1 72 6/19/2019
6.1.2 124 10/28/2019
6.1.0 111,928 1/17/2019
6.0.0 156,798 2/28/2018
2.4.0 154,685 11/30/2017
2.3.7 61,749 9/21/2017
2.3.6 44,859 8/11/2017
2.3.5 367 8/11/2017
2.3.4 41,979 5/2/2017
2.3.3 25,819 1/10/2017
2.3.2 558 1/10/2017
2.3.1 446 1/10/2017
2.3.0 312 1/9/2017
2.2.0 3,652 12/5/2016
2.1.4 6,501 10/18/2016
2.1.3 3,026 9/13/2016
2.1.2 1,519 8/1/2016
2.1.1 6,461 3/28/2016
2.1.0 487 3/10/2016
2.0.0 416 2/19/2016
1.2.1 1,380 1/27/2016
1.2.0 528 1/8/2016
1.1.0 391 1/4/2016
1.0.0 1,841 10/20/2015
Show less