BIROn - Birkbeck Institutional Research Online

    Connecting to AWS OpenSearch Serverless using Python

    Eve, Martin Paul (2023) Connecting to AWS OpenSearch Serverless using Python. eve.gd ,

    [img] Text
    2023-10-20-connecting-to-aws-opensearch-serverless-using-python.markdown - Published Version of Record
    Available under License Creative Commons Attribution.

    Download (1kB)

    Abstract

    I recently wanted to use ElasticSearch (or OpenSearch as Amazon terms it from the fork) in an AWS environment, using Python. When I tried to connect I got a very painful 403 Forbidden error. Specifically: opensearchpy.exceptions.AuthorizationException: AuthorizationException(403, ‘Forbidden’). The answer I needed was eventually here: https://opensearch.org/docs/latest/clients/python-low-level/. The key point is that, when using serverless, the service is not “es” but “aoss” (Amazon OpenSearch Serverless.

    Metadata

    Item Type: Article
    School: Birkbeck Faculties and Schools > Faculty of Humanities and Social Sciences > School of Creative Arts, Culture and Communication
    Depositing User: Martin Eve
    Date Deposited: 23 Jan 2024 12:31
    Last Modified: 23 Jan 2024 12:31
    URI: https://eprints.bbk.ac.uk/id/eprint/52890

    Statistics

    Activity Overview
    6 month trend
    243Downloads
    6 month trend
    173Hits

    Additional statistics are available via IRStats2.

    Archive Staff Only (login required)

    Edit/View Item
    Edit/View Item