Opensearch in DO

Opensearch in DO

November 20, 2024 | permanent

tags :

OpenSearch in DO #

On <2024-11-14 Thu>2.17 was the supported version as V2

Supported plugins #

ref

Install doctl #

  • install
    brew install doctl
    

authenticate #

doctl auth init --context managed-database

– it will ask for the token, get it from the “API” with apt scope

doctl databases list --context managed-database

context is used as an alias for the token to authenticate

User and Role management with CLI #

support ticket

To create user: https://docs.digitalocean.com/reference/api/api-reference/#operation/databases_add_user

curl -X POST \ -H “Content-Type: application/json” \ -H “Authorization: Bearer $DIGITALOCEAN_TOKEN” \ -d ‘“name”: “app-01”’ \ “https://api.digitalocean.com/v2/databases/%3Ccluster-uuid%3E/users

To update user with ACLs at Index level: https://docs.digitalocean.com/reference/api/api-reference/#operation/databases_update_user

curl -X PUT \ -H “Content-Type: application/json” \ -H “Authorization: Bearer $DIGITALOCEAN_TOKEN” \ -d ‘“settings”: “opensearch_acl”: [“index”: “<index-name>”, “permission”: “**”]’ \ “https://api.digitalocean.com/v2/databases/%3Ccluster-UUID%3E/users

How to create a personal access token :

https://docs.digitalocean.com/reference/api/create-personal-access-token/

Get cluster UUID :

https://docs.digitalocean.com/reference/api/api-reference/#operation/databases_list_clusters

For more details: https://docs.digitalocean.com/products/databases/opensearch/how-to/manage-users/

With VM #

  • Can be installed as VM droplet from the market place
  • lowest cost as checked on <2022-12-19 Mon> was $48/month


No notes link to this note

Go to random page

Previous Next