opensearch-serverless

command
v0.0.0-...-fc8053b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 8 Imported by: 0

README ΒΆ

πŸ“š Golang AWS OpenSearch Index Management

πŸš€ Golang snippets demonstrating how to connect to AWS OpenSearch (formerly known as Amazon Elasticsearch) with IAM-based role authentication.

πŸ“„ Files
  • openserverless_serverless_conn_create_index.go: Create and delete indexes with custom settings.
  • openserverless_serverless_conn_get_index.go: Retrieve index metadata.

βœ… Prerequisites

Before you begin, make sure you have:

  1. πŸ›‘οΈ An AWS Account: With IAM roles and permissions configured to access AWS OpenSearch.
  2. πŸ› οΈ Golang Installed: Ensure Golang is set up on your machine.

βš™οΈ Setup

  1. Set Environment Variables:

    Configure the following environment variables to enable the code to interact with your OpenSearch cluster:

    • AWS_OPENSEARCH_ENDPOINT: 🌐 Your AWS OpenSearch cluster's endpoint URL.
    • AWS_REGION: 🌎 The AWS region where your OpenSearch cluster is hosted.

⚠️ Important: Index creation and deletion are powerful operations that directly impact your AWS OpenSearch data. Proceed with caution to avoid accidental data loss.

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL