Install and configure webserver based on nginx with php 7 and fpm over socket configured plus a couple of utils.
While launching a new instance open the section Advanced details in step 3. Configure Instance paste this code that will clone this gist and run the install commands.
#!/bin/bash
yum install git -y
git clone https://gist.github.com/48cc75097b14661574311343f4215444.git /home/ec2-user/install
chmod a+x install/install.sh
bash /home/ec2-user/install/install.sh