Skip to content

Opensearch restore no permissions error

0

I have the following scenario :

  • I have an Opensearch domain A in AWS account A
  • I have another Opensearch domain B in AWS account B
  • I would like to take a snapshot in domain A and then restore it in domain B. When I do that, I have the following error :
{
  "body": "Snapshot restore failed: {
    "error": {
      "root_cause": [
        {
          "type": "security_exception",
          "reason": "no permissions for [] and User [name=<my_user>, backend_roles=[], requestedTenant=null]"
        }
      ],
      "type": "security_exception",
      "reason": "no permissions for [] and User [name=<my_user>, backend_roles=[], requestedTenant=null]"
    },
    "status": 403
  }"
}

I have gone through a lot of examples and would like to add that I only take snapshot of a specific indexes and not indexes such as the .opendistro_security index.

My user has also the manage_snapshots permissions so he is able to do any action related to snapshots.

Regards

asked a year ago380 views
1 Answer
0

Hello.

Have you tried the steps in the document below?
https://repost.aws/knowledge-center/opensearch-restore-data

EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.