Elasticsearch.Net.Aws 6.0.0

Enables request signing necessary for using the AWS Elasticsearch service.

Install-Package Elasticsearch.Net.Aws -Version 6.0.0
dotnet add package Elasticsearch.Net.Aws --version 6.0.0
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

Version History

Version Downloads Last updated
6.0.0 (current) 18,500 2/28/2018
2.4.0 38,415 11/30/2017
2.3.7 27,201 9/21/2017
2.3.6 14,515 8/11/2017
2.3.5 119 8/11/2017
2.3.4 27,440 5/2/2017
2.3.3 17,159 1/10/2017
2.3.2 143 1/10/2017
2.3.1 182 1/10/2017
2.3.0 130 1/9/2017
2.2.0 3,145 12/5/2016
2.1.4 3,417 10/18/2016
2.1.3 2,403 9/13/2016
2.1.2 845 8/1/2016
2.1.1 4,999 3/28/2016
2.1.0 267 3/10/2016
2.0.0 205 2/19/2016
1.2.1 824 1/27/2016
1.2.0 290 1/8/2016
1.1.0 221 1/4/2016
1.0.0 1,619 10/20/2015