aws elasticbeanstalk
TRANSCRIPT
AWS - Elastic BeansTalk
Ismail JALLOULI
November 13, 2015
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 1 / 41
Overview
1 Elastic BeansTalkStep 1Step 2Step 3Step 4Step 5Step 6
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 2 / 41
Step 1
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 3 / 41
Create a new application
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 4 / 41
Config application version
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 5 / 41
Enter name Environnement
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 6 / 41
Create an RDS data Base
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 7 / 41
Environment tags
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 8 / 41
Configuration your Database RDS
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 9 / 41
Choose your permission created
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 10 / 41
The Review
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 11 / 41
Finally .. Launching
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 12 / 41
Config
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 13 / 41
Config
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 14 / 41
Step 2
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 15 / 41
Create a new application
Commands to execute:
cd /ournearteam
git init
eb init
git add -A
git commit -m ’version 1.0’
eb deploy ( push : gitaws.push on wind7)
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 16 / 41
Slide 1
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 17 / 41
Slide 2
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 18 / 41
Slide 3
Connect to elastic Beans =¿ ssh 54.154.110.158 -l ec2-user -iMyEC2elkey.pem
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 19 / 41
Inder AWS Linux
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 20 / 41
Architecture AWS
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 21 / 41
Step 3
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 22 / 41
Permission Default by Elastic BeansTalk
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 23 / 41
Permission Default by Elastic BeansTalk : var/www/html
index.php is the page default created By Elastic BeansTalk.
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 24 / 41
Permission Default by Elastic BeansTalk : /var
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 25 / 41
Step 4
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 26 / 41
First init Git and Eb
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 27 / 41
Installing PHP and Composer
Commands to execute :
ssh 54.154.110.158 -l ec2-user -i MyEC2elkey.pem
yum install php56 git -y (install php5.6)
service httpd restart
nano index.php (create a file .php )
http://yournearteam-env.elasticbeanstalk.com/test.php
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 28 / 41
Result
http://yournearteam-env.elasticbeanstalk.com/test.php
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 29 / 41
Installing via Composer
Command to execute inder /html : curl -sShttps://getcomposer.org/installer — php link to see :http://docs.aws.amazon.com/aws-sdk-php/v3/guide/getting-started/installation.html
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 30 / 41
Aws-sdk-php
php composer.phar require aws/aws-sdk-php
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 31 / 41
Installation done
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 32 / 41
Deploy done
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 33 / 41
Page Hosted
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 34 / 41
Step 5
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 35 / 41
RDS DATA BASE Configuration Details
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 36 / 41
RDS Connection
Commands to execute :
ssh 54.154.110.158 -l ec2-user -i MyEC2elkey.pemmysql -haa216g8pswb2u2.cpwvzr06s4g9.eu-west-1.rds.amazonaws.com -P3306 -u jalloulidb -p
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 37 / 41
Step 6
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 38 / 41
Install phpMyAdmin On AWS
cd /var/www/html wgethttps://files.phpmyadmin.net/phpMyAdmin/4.4.13.1/phpMyAdmin-4.4.13.1-english.tar.gz tar -xzvf phpMyAdmin-4.4.13.1-english.tar.gz -C/var/www/html mv phpMyAdmin-4.4.13.1-english phpmyadmin rm -rfphpMyAdmin-4.4.13.1-english.tar.gz
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 39 / 41
phpMyAdmin on AWS EB
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 40 / 41
phpMyAdmin connected
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 41 / 41
The End
Ismail JALLOULI (Nearteam Tunisie) Short title November 13, 2015 42 / 41