At this point, we don't need the Apache software in the EC2 machine anymore. To remove it run the following command:
sudo yum remove httpd
It is also convenient to clean the security group of the EC2 machine by removing the access to port 80:
Leave the SSH open to your own IP with the My IP source option.