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 Risposta
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
con risposta un mese fa
profile picture
ESPERTO
verificato un mese fa
  • 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!

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande