100 days of aws day 26

my all checks are passed, can access nginx still when i submit it says, it is failed. why is that, i have tried twice. please help


The public IP should open the default nginx landing page.

The User Data Script required for this is as follows:

#!/bin/bash
apt update -y
apt install -y nginx
systemctl start nginx
systemctl enable nginx

hello watch this video tutorial and if fit is helpful please make sure to star my repo .