Skip to content

Commit c135f7d

Browse files
committed
Update elasticsearch-transport README
1 parent ca417b6 commit c135f7d

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
@@ -374,17 +374,7 @@ To configure the _Faraday_ instance directly, use a block:
374374
f.adapter :typhoeus
375375
end
376376

377-
You can use any standard Faraday middleware and plugins in the configuration block,
378-
for example sign the requests for the [AWS Elasticsearch service](https://aws.amazon.com/elasticsearch-service/):
379-
380-
require 'faraday_middleware/aws_signers_v4'
381-
382-
client = Elasticsearch::Client.new url: 'https://search-my-cluster-abc123....es.amazonaws.com' do |f|
383-
f.request :aws_signers_v4,
384-
credentials: Aws::Credentials.new(ENV['AWS_ACCESS_KEY'], ENV['AWS_SECRET_ACCESS_KEY']),
385-
service_name: 'es',
386-
region: 'us-east-1'
387-
end
377+
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.
388378

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

0 commit comments

Comments
 (0)