README.md in elasticsearch-transport-1.0.15 vs README.md in elasticsearch-transport-1.0.16.pre
- old
+ new
@@ -293,10 +293,9 @@
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 'patron'
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']),