Skip to content

Commit

Permalink
Update elasticsearch-transport README
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Mar 25, 2020
1 parent 0fdc653 commit f6fcb76
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions elasticsearch-transport/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,17 +374,7 @@ To configure the _Faraday_ instance directly, use a block:
f.adapter :typhoeus
end

You can use any standard Faraday middleware and plugins in the configuration block,
for example sign the requests for the [AWS Elasticsearch service](https://aws.amazon.com/elasticsearch-service/):

require 'faraday_middleware/aws_signers_v4'

client = Elasticsearch::Client.new url: 'https://search-my-cluster-abc123....es.amazonaws.com' do |f|
f.request :aws_signers_v4,
credentials: Aws::Credentials.new(ENV['AWS_ACCESS_KEY'], ENV['AWS_SECRET_ACCESS_KEY']),
service_name: 'es',
region: 'us-east-1'
end
You can use any standard Faraday middleware and plugins in the configuration block, for example sign the requests for the [AWS Elasticsearch service](https://aws.amazon.com/elasticsearch-service/). See [the AWS documentation](https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-request-signing.html#es-request-signing-ruby) for an example.

You can also initialize the transport class yourself, and pass it to the client constructor
as the `transport` argument:
Expand Down

0 comments on commit f6fcb76

Please # to comment.