First, for this query, we need to know where the error is and to find that issue so log in to EC2, check if your commands were successfully executed, by running
service httpd status
if you get an error, httpd was not installed, and that means your file was probably not created, as the directory was not present.
And also do check that with:
ls -lrt /var/www/html