[7.x] Refactor cloud_id, api_key, headers, and http_compress

This commit is contained in:
Seth Michael Larson
2020-03-04 13:07:07 -06:00
committed by GitHub
parent b0bc6418e3
commit 04403ffb1d
6 changed files with 158 additions and 69 deletions
+1
View File
@@ -296,6 +296,7 @@ documents. This will configure compression.
from elasticsearch import Elasticsearch
es = Elasticsearch(hosts, http_compress=True)
Compression is enabled by default when connecting to Elastic Cloud via ``cloud_id``.
Running on AWS with IAM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~