This is a Cloudformation template to deploy LAMP Stack to AWS! This Template is adapted for the PHP-Framework Symfony.
Tutorial in German: https://youtu.be/hcELHMOs32U
This is LAMP Stack
- Ubuntu 20.04.1
- Apache 2.4.41
- MySQL 8.0.20-0
- PHP 7.4.3
- PhpMyAdmin
- Python3
- Symfony
- Jenkins
- EC2-Instance (t2.micro located in Frankfurt)
- GitHub
- Path: domain.com
Notes: You can create a new symfony project or you can take an existing Symfony-Project from Github. For the case you want to install an existing project you have to write your own script!
# install an existing project from github
# !! edit !! the following script (the following script is on github)
mkdir /var/www/html/settings
sudo curl https://${GithubUser}:${GithubPassword}@raw.githubusercontent.com/LuminiCode/symfony/master/aws-install-script-sg.sh -o /var/www/html/settings/aws-install-script-sg.sh
bash /var/www/html/settings/aws-install-script-sg.sh ${GithubUser} ${GithubPassword} ${AWS::StackName} ${DBUser} ${DBPassword} ${DBName}
- Path: domain.com/phpmyadmin
- Path: domain.com:8080
- Unlock: In the terminal window, use the cat command to display the password
sudo cat /var/lib/jenkins/secrets/initialAdminPassword