Skip to content

barteku/aws-cloudformation-ubuntu-lamp-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Cloudformation template for LAMP Stack Deployment

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

Stack

This is LAMP Stack

  • Ubuntu 20.04.1
  • Apache 2.4.41
  • MySQL 8.0.20-0
  • PHP 7.4.3

Optionally Tools

  • PhpMyAdmin
  • Python3
  • Symfony
  • Jenkins

AWS Ressourcen

  • EC2-Instance (t2.micro located in Frankfurt)

Another Ressources

  • GitHub

Description:

Symfony:

  • 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}

phpMyAdmin:

  • Path: domain.com/phpmyadmin

Jenkins:

  • Path: domain.com:8080
  • Unlock: In the terminal window, use the cat command to display the password
sudo cat /var/lib/jenkins/secrets/initialAdminPassword

About

CloudFormation YAML templates - Ubuntu - LAMP-Stack - Symfony

Resources

License

Stars

Watchers

Forks

Packages

No packages published