How to Speedrun Deploy Laravel 8 with ec2 Linux 2 and RDS within 14mins

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so today i'm gonna be teaching how to delete two instance in one click just click this check box and then instantiate termite instance terminate and that's it hello guys how you doing today is not gonna be a tutorial this is going to be a speed run on deploying laravel with ec2 instance and rds let's start this now the first thing to do is create a new instance free tier okay amazon linux to ami next go to security group let's put this speedrun ssh anywhere so that you guys can access my server and run bitcoins https http where is that there this okay anywhere and anywhere so that way so that my website is going to be available for everyone i already have a cape here i'm going to use that let's view the instance so while we are waiting let me put some labels here spell dream so while we are waiting let's create an elastic id okay okay and this one is not yet associated let's try this to our newly created instance speedrun it's correct good thing we put labels i mean hurry so in this one let's create an rds speedrun artist this is for our database for database permissions so for the database what we need is mysql anyone can connect to that so that your mysql workbench and ec2 instance can connect to this rds let's create that okay now that's created let's check our c2 instance so it's still [Music] checking the status while we're waiting for that let's prepare our rds okay so let's choose standard mysql and then let's wait there's going to be a hidden card here wait for it okay there it is free tier so if you choose production or dev test it's going to charge you 800 use dollars per month let's use put this speed run and i'm gonna put this root and i i already have password prepared switch this on and use free tier and then additional connectivity configuration public yes uh where is the security groups did i miss it security groups um you can't find it other this let's use the speedrun rds and remove this one and that's it we are good to go so while our database is being created let's go back to our ec2 instance let's check the time or okay so four minutes uh let's try to connect i am using powershell cd to my pim key so this is where i put my pen key okay yes of course so now that i'm in let's try running this with dash y install so amazon has now a new feature amazon linux extras this one some libraries have already been installed all you have to do is enable them just like this one amazon is slowing me down oh come on okay like this now as you can see these are some of the libraries already installed all you have to do is enable this one next is amazon said that you have to run these codes and this one so i i already have mine prepared okay so i'll be using this because laravel is going to need this libraries in b string and other things this one is incomplete let's also install our get six minutes already next is install composer faster let's check our h3 version if it's working okay 7.4 now let's correct our dependencies installation will take some time so we'll have to set some proper permission on our files now let's go to bar w html standard and then let's get laravel latest okay looking good let's install the libraries dependencies packages all right now that's done wait that's that okay let's create in environment generate the key so we need to also [Music] you did the dv house press i [Music] the db host is coming from the rds let's check if it's done processing i hope it's done okay so there it is let's look for the end point there's no one the base is and then the password would be this one okay now that's set up next set up the host let's go to this file it's got the bottom bottom of this file so far so i'm going to paste this thing where my laravel is installed w html speedrun so i guess this is correct [Music] right and quit let's run apache and php enable it okay so let's check if this is working the moment of truth guys don't jinx it oh permission denied okay okay a little bit we need to switch mode that one switch mode storage and then it's working so now that we know level it is working the next thing to do is find out if all this is still working let's check the time 11 minutes already let's create a connection nice square speed run then yellow this thing the host is still the same the one this one the host port username password database we don't have a database yet okay connection is okay so if we do migration php artisan migrate going to cause an error you know why because speedrun is not yet existed we have to create that database speedrun let's choose this open so now that we have created it this should run i hope it works okay yeah refresh so i'm using table plus table plus is under mom company mom pro it's the same with my squad workbench so it's simple okay so we have a working database and we have a working level so i think that's done step by step so we managed to create deploy a level with ec2 instance with elastic ip with a running rds in under 14 minutes i hope everyone enjoyed it and learn from it create new techniques and be efficient in deploying laravel and easy to instance thank you [Music]
Info
Channel: Hardcore Programming Warrior
Views: 982
Rating: undefined out of 5
Keywords: How to deploy Laravel in ec2 instance Linux 2, How to speedrun deploy Laravel ec2 linux 2 and RDS, RDS, AWS, ec2, linux 2, AMI, deploy, Laravel 8, laravel, ec2 instance, amazon web services, ec2 instances, how to setup ec2 instances, how to create gmail, how to create lastpass, how to setup lastpass, how to setup gmail, how to create aws, how to setup aws, amazon, web, services, devops, beginners, tutorial, sharing, tony robins, programmers, react, angular, php, javascript, gmail, lastpass
Id: mBEdFlw4ybc
Channel Id: undefined
Length: 14min 17sec (857 seconds)
Published: Tue Nov 03 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.