[FEATURE] Add support for urllib3 > v2
envgap__opensearch-project__opensearch-py-628
01 / FAILURE SIGNATURE
As reported upstream
When using `opensearch-py` v2.3.2 and greater with `boto3` provided by AWS Lambda , the following error occurs:
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
c4e53d444aef698e08801bfccd55a2478721a97c- Manifest
setup.py- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
opensearch-project/opensearch-py #628 · read the original issue
### What is the bug?
When using `opensearch-py` v2.3.2 and greater with `boto3` provided by AWS Lambda , the following error occurs:
`cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_'`
### How can one reproduce the bug?
Dockerfile:
```Dockerfile
FROM public.ecr.aws/lambda/python:3.9
RUN pip3 install opensearch-py==2.3.1 --target ${LAMBDA_TASK_ROOT}
COPY /app/ ${LAMBDA_TASK_ROOT}/
CMD ["app.function"]
```
app.py:
```python
import boto3
import opensearchpy
def function(event, ctx)
print("hello")
```
### What is the expected behavior?
Imports are successful and code runs.
### What is your host/environment?
`public.ecr.aws/lambda/python:3.9`
### Do you have any screenshots?
N/A
### Do you have any additional context?
Downgrade to 2.3.1 successfully executes.04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]