One can put the content of the wordpress.sh file under the "User Data" section while launching the Redhat Linux on AWS.
This script can also be downloaded and be executed alone to install wordpress.
Database - wordpress
Username - admin
Password- admin123
For get things done fast just do :-
sudo yum install wget -y
wget https://raw.githubusercontent.com/ashwini33/wordpress-bash-script/master/wordpress.sh
sudo bash wordpress.shNote: If you have any files allready in the working directory then the downloaded file will be saved with name "wordpress.sh.1" ,in this case either remove the current file then download again or run
sudo bash wordpress.sh.1