Signature Version 4 Elasticsearch Transport for Amazon Elasticsearch Service

Build Status

elasticsearch-transport-aws4 signs Amazon Elasticsearch Service requests using Signature Version 4.

Installation

Add this line to your application's Gemfile:

gem "elasticsearch-transport-aws4", "~> 0.1.2"

And then execute:

$ bundle

Or install it yourself as:

$ gem install elasticsearch-transport-aws4

Usage

Create Elasticsearch client with transport_class and aws4 options.

Elasticsearch::Client.new(
  url:             "https://search-XYZ-ABCDEFGHIJKLMMNOPQRTUVWXYZ.us-east-1.es.amazonaws.com",
  transport_class: Elasticsearch::Transport::AWS4,
  aws4: {
    key:    "KEY_KEY_KEY_KEY",
    secret: "SECRET_SECRET",
    region: "us-east-1"
  }
)