Repository is archived
No commit activity in last 3 years
No release in over 3 years
Signature Version 4 Elasticsearch Transport for Amazon Elasticsearch Service
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 5.8.2
~> 10.0
~> 0.8.0
~> 1.22.1

Runtime

 Project Readme

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"

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"
  }
)