Skip to content

An unauthorized error occurred that no permission when accessing OpenSearch Dashboard. #97

Answered by Paul-AWS
Paul-AWS asked this question in Q&A
Discussion options

You must be logged in to vote

When creating a new OpenSearch cluster, the default setting in Access Policy part is “Configure domain level access policy”, and the json code will be like this.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Deny", "Principal": { "AWS": [ "" ] }, "Action": [ "es:" ], "Resource": "arn:aws:es:REGION:ACCONT-ID:domain//*" } ] }

This policy will deny all the access from any IAM role or user, which caused the unauthorized error when you visit the dashboard url. You need to change the Action from “Deny” to “Allow”. You can change it via Visual Editor, or in the json code. The access policy should be like this.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": {…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Paul-AWS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant