If you wish to clear everything and start again; you can run ambari-server reset
After you run this you will lose all cluster information in your setup. You will need to clear up the users, directories & repositories on the machines to ensure a successful installation.
Are the repositories configured correctly on the EC2 servers as it looks like the mysql-server package cannot be found. What is the outcome of issuing the command “yum install mysql-server”