BIROn - Birkbeck Institutional Research Online

    Connecting to AWS OpenSearch Serverless using Python

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

    [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)


    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: The key point is that, when using serverless, the service is not “es” but “aoss” (Amazon OpenSearch Serverless.


    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


    Activity Overview
    6 month trend
    6 month trend

    Additional statistics are available via IRStats2.

    Archive Staff Only (login required)

    Edit/View Item Edit/View Item