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 個月前檢視次數 248 次
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
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
  • 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!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南