AWS S3 bucket "404 Not Found"
In my case, I had to specify index.html
in both Index document
and Error document
on S3 Static website hosting properties.
Your bucket policy Resource property needs to contain, note the /*:
"Resource":["arn:aws:s3:::bucketname/*"]
You also need to set the error document to be your index.html
Specifiying index.html in the error page solved the issue for me too.