Getting "User: anonymous is not authorized to perform: es:ESHttpGet because no resource-based policy allows the es:ESHttpGet action"

0

Our websites have stopped working and we are getting the following error when we browse to them.

"Message": "User: anonymous is not authorized to perform: es:ESHttpGet because no resource-based policy allows the es:ESHttpGet action"

The server is "LightSail" .... Windows Server 2016 with a database The sites are ASP.Net running on IIS

What other info can I provide? I am new AWS and don't know how to fix this?

Thank you!

1개 답변
0

Hello,

One possible reason why this might happen is because you making an anonymous request to the service, and the service does not allow it. However, most likely, the reason is that, as stated in the error message, you do not have a resource policy that allows this API call to happen. To resolve this error, you can try to make a resource policy and attach it to the Lightsail service.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "" }, "Action": "es:", "Resource": "arn:aws:es:us-east-1:xxxxxx:domain/xxxxx/*" } ] }

Please make sure to adjust the policy to your needs and security standards.

profile picture
Julian
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
  • Thank you. I will give this a try.

    Is this something new Amazon has implemented in the last couple of months? We don't understand why our sites would just stop working after several years.

    If this policy was already in place and someone accidentally deleted it, is there a way to know when that happened and recover it?

    Thanks again!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠