Skip to content

Commit 57ad51a

Browse files
committed
Update elasticsearch-transport README
1 parent fbda456 commit 57ad51a

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

elasticsearch-transport/README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -359,17 +359,7 @@ To configure the _Faraday_ instance directly, use a block:
359359
f.adapter :typhoeus
360360
end
361361

362-
You can use any standard Faraday middleware and plugins in the configuration block,
363-
for example sign the requests for the [AWS Elasticsearch service](https://aws.amazon.com/elasticsearch-service/):
364-
365-
require 'faraday_middleware/aws_signers_v4'
366-
367-
client = Elasticsearch::Client.new url: 'https://search-my-cluster-abc123....es.amazonaws.com' do |f|
368-
f.request :aws_signers_v4,
369-
credentials: Aws::Credentials.new(ENV['AWS_ACCESS_KEY'], ENV['AWS_SECRET_ACCESS_KEY']),
370-
service_name: 'es',
371-
region: 'us-east-1'
372-
end
362+
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.
373363

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

0 commit comments

Comments
 (0)