'aws open search not able to insert data
i have given all the required permission from the aws. this error occurs when i tried to create an index. Error response: ResponseError: security_exception: [security_exception] Reason: no permissions for [indices:admin/create] and User [name=arn:aws:iam::999999999999:user/media-s3, backend_roles=[], requestedTenant=null] not able to identify cause of this error. how to solve this error?
Solution 1:[1]
ok, so i got the solution,
- you need to login to kibana(click on the dashboard link [OpenSearch Dashboards URL in aws console]).
2.path to open dashboard(Amazon OpenSearch > ServiceDomains > your domain name)
in the roles section select all_access.
your end path should be link this.Security > Roles > all_access > Map user
now in the users input past your arn user.
in the error copy after 'User [name=', so you copy this
'arn:aws:iam::999999999999:user/media-s3' past it into the user input and click on map.
Solution 2:[2]
Updated Instructions for OpenSearch Dashboards:
- Log into AWS and go to Amazon OpenSearch Service > Domains > [Your domain]
- Click the link for "OpenSearch Dashboards URL"
- Now inside the OpenSearch Dashboard, go to Menu > OpenSearch Plugins > Security
- Click "Explore existing roles"
- Find an adequate role. The easiest is
all_access
. Click that. - Click the "Mapped users" tab.
- Click "Manage mapping"
- In the Users field, add the full ARN of the IAM role. This is formatted like
arn:aws:iam::############:role/xxxxxxxxxx
- Click "Map"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Bhavin Verma |
Solution 2 | Tyler V. |