Page downloading on load AWS S3

This is the first time I am hosting a Kirby site with AWS, I have over 100 websites on here so it is not a practice I am not used to using. I am setting up a website for static web hosting with AWS S3 buckets. I have set the index to index.php which is in the root, the same as I have done locally with XAMPP where I have no issues. Why is the page downloading on load and not displaying my website?

According to the AWS docs, you can only host static websites on S3 buckets. No PHP etc.

Ahh, thanks boss, I actually got in touch with the support and they gave me some really long winded answer which didn’t help at all. To the point and exact thanks for the answer.