Demo | Three-tier web app in AWS with VPC, ALB, EC2 & RDS
HTML-код
- Опубликовано: 30 июн 2024
- In this video, I'm going to demonstrate how to set up basic networking and deploy a simple three-tier application in AWS Cloud.
This video is meant for beginners who want to start their hands-on journey on AWS Cloud. To keep the video simple, I have not included auto-scaling, caching in this use case, I'll cover the same in my upcoming videos.
Services used:
* VPC
* ALB
* EC2
* RDS
Tutorial: Tutorial: Install a LAMP web server on Amazon Linux 2
docs.aws.amazon.com/AWSEC2/la...
#aws #cloud #architecture #cloudcomputing
00:00 Intro
00:18 AWS Networking
1:25 Three-tier app architecture
1:50 Create VPC
2:39 Create Subnets
7:15 Create route tables
8:25 Route table subnet associations
9:10 Create internet gateway
9:33 Create NAT gateway
10:25 Add routes for IGW, NAT
11:34 Create a jump server
12:58 Create PHP servers
15:20 Installation of PHP, Apache
19:10 Install phpMyAdmin (Sample app)
20:07 Create and configure an application load balancer
23:10 Create RDS instance
25:50 Configure phpMyAdmin with RDS
26:50 Configure session stickiness
27:36 Services recap
Thanks for watching!
If you like my content, please subscribe.
Want to start your DevOps journey? Watch this • Demo | Three-tier web ...
Connect with me on LinkedIn: / ajitinamdar
Disclaimer: All the views expressed are completely my own.
What a wonderful teacher! Loved it, I've a way better understanding of 3-tier architecture now. Thankyou.
Thanks Marion for the wonderful feedback. Glad it was helpful for you.
This is excellent, and it answered a few of the questions that other videos on VPC's did not cover. Thanks.
Thanks Matt, I'm glad it was helpful for you.
Awesome video! You 're the best presenter for The 3-Tiers of AWS Web Architecture! Thank you!
Thank you for your feedback, glad it was helpful for you.
Thank you so much for the video ! You are one of the best facilitator in this domain 🙏 ! Hoping for great content like this !
Thanks Kushal, please stay tuned for more content.
Thank you so much for the video, Ajit. Not only the content is amazing, but you have a great teaching method! Looking forward to more videos from you!
You are most welcome, Marcelo.
Excellent Video which covers many basic stuff to tighten the security level of the Architecture.
Thanks Aravinth for this feedback!
Very nice and excellent with a complete setup of a web application from 0 to 10. Great job.
Thanks Jignesh for this feedback!
What a video. Being a fresher I almost enjoyed this video. Will be great once I come to know how things work in the corporate. Expecting more videos from you. Thanks 💥
Thanks Prajwal, glad it was helpful. I have planned more videos in coming weeks, so please stay tuned!
Its simple and nice, easy to understand. Good work Ajit and looking for more!
Thanks Meeran! Glad you liked it!
Good work. Nice and excellent video and easy to understand the process. Looking for more videos
Thank you for sharing your knowledge and keeping it simple 👍
My pleasure!
Great work, and very straight to the points, I like the demo. Thanks for sharing
Thanks Michael! Glad you liked it!
Super nice demo for 3-tier architecture in aws. Thank you.
Thanks Satyawan, glad you liked it.
exactly what i was out here looking for, thank you very much for this labs. very simple and clear.....
Thanks Sean for your feedback. Glad it was helpful for you.
a clear explaination with reasons and use cases appreciate it
Thanks Yamini, glad you liked it!
Simply awesome - great work!!!
Looking forward for more videos with complexes architecture and I am sure you will make it easy for us 🎉
Thanks Noshin for your kind words. Please stay tuned, I'll be creating more such hands-on videos!
LOVE your content man! Keep it coming!
Thank you for your feedback, I have planned for more such hands-on videos, please stay tuned.
Honestly one of the best hands on AWS tutorials, especially for beginners!
Glad you think so!
Great video Ajit, this shows how deep knowledge you have on this topic
Thanks a ton, Parshuram!
Nicely Explained!
Thanks Ajit... looking ahead for more HandsOn content in learning AWS
Thanks Rahul, I have planned entire series on AWS in the near future! Please stay tuned!
A very nice video Ajit. All the information stated in a very easy manner. Keep it up👍
Thanks a ton
Great video!!! Thank you for the clear demo.
Thank you Aruna, glad it was helpful!
Super helpful, many thanks!
Fantastic video! I like these it helps to practice doing things like this to put what I learn to use and makes it fun.
Thanks for this feedback. Glad it was helpful for you.
Excellent video Ajit. Clarified most of my doubts. Thank you.
Thanks Tejava, glad it was helpful for you.
This is one of the best demo . Thanks
Thanks Binod for your feedback, glad you liked it.
Thank u so much, this video is so help to understand aws concepts and infrastructure level understanding
You are most welcome
Good and Simple Demo, Easy to understand, Keep it up!
Thank you, glad it was helpful to you.
Great Work, thankyou, a bunch you explaining in the simplest form. I appreciate if you make video explaining choosing IPs and Cider Blocks when creating VPC and also serverless Architecture like API, S3, DDB etc. Thanks again.
Sure Faisal. I'll be soon creating videos about serverless architecture.
crisp clear.. great video.. expecting more videos
Thanks Salar!
I'm currently working on more videos. Please stay tuned!
I really commend you for this video. It's really wholesome
Thanks Kareem. Glad it was helpful for you.
Thanks a lot. Simple and most descriptive video so far. Kindly upload ALB with Auto Scaling Group demo if possible
Thanks Aniket, will cover ALB with auto scaling soon.
Fantastic content. Thanks so much Ajit!
Hi Avinash,
Thank you for your feedback, glad you liked it.
Thanks so much for this video, this helped me alot with my project.
You're very welcome!
Same here...
great work thankyou so much ,looking for more videos for AWS
Thanks Aarti, glad it was helpful to you!
Wonderful content. Thanks for this.
Hi Jasper,
Thank you for your feedback. Glad you liked it 🙂
This helped me so much ajit, Thank you. I hope you continue to make more like these to help beginners like me.
Hi Snowdrop,
Thanks for your feedback, glad the video was helpful for you.
Awesome video. I am newcomer to AWS and this video really helped.
Thank you, glad it was helpful for you.
Sir thank you so so much.iam searching for this content past 5 months.Really appreciate for your content.thank you very muchhhhhh.pls do another contents on AWS.excellent sir 🙏
Thanks Anil, glad you liked it. I have some more content in the pipeline, please stay tuned.
Fantabulous, this videos cleared all my doubts....
Thanks Anil for your feedback. Glad it was helpful for you.
Thanks for such valuable information
Thanks Gunvant, glad you liked it!
This video is awesome... Today I learned a lot 👍
Thanks Chandrakant!
Nice content Ajit, Thanks for sharing your knowledge.
Thanks Sudarsana!
Awesome and to the point thanks a lot
Thanks Mostafa, glad you liked it!
simply amazing video.
Thank you for your feedback.
Very informative, thanks for the video
Thanks Rajeev, glad it was helpful for you.
nice explaining each end of every configuration
Thanks Guru. Glad you liked it.
This is the real stuff.. great tut
Thanks Niwo, glad it was helpful to you!
It was nicely done! thank you!
Thanks Sathyajit for your feedback, glad it was helpful for you.
Nice video and detailed explanation that helped alot 😊
Thanks Amarnath for your feedback!
Thanks a lot. It's very useful.
Thanks for the feedback Arjunan, glad you liked it!
Awesom video 🤗👍🏼👍🏼thank you for this video..helped me a lot
Thanks Ramya. I’m glad it was helpful for you.
Thank you for your nice content
Hi Naga,
Glad it was helpful for you!
Nice explained!!
Thanks Ashok, glad you liked it 😊
Indeed.
Excellent video
Thanks Ganesh!
very Helpfull video sir gain lots off knowledge thank you
Hello Akash,
Great to hear that.
Best content.... Thank you
Thanks. Glad it was helpful for you.
Nice Video, I was searching it from long time.
Exactly what I expected. Please add such more videos with ASG's and R53 too.
Please try to mention type of EC2 probably we can select as per sample requirement examples. (T2 micro is ok for video) But you can mentione which we can select for which (sample examples) requirements.
Nice work.... Keep it up.....
I like this video.
Thanks Buddy.
Thanks Vinayak for this feedback. I have planned more hands-on videos on AWS in the coming weeks. Meanwhile if you have any video requests please let me know. I’ll try to accommodate those as soon as possible.
Awesome work bro
Thanks Azhar, glad it was useful for you!
Great. it's a simply superb, nic work brother... :)
Thanks Lohith, glad you liked it!
Very nice content .
Thanks Atul, glad you liked it!
Nice demo Ajit !
Glad you enjoyed it
nice explanation , thanks
Thanks Poonam, glad it helped!
Merci beaucoup pour la vidéo
Merci pour vos commentaires Alfred
Great work , please more video regarding the Aws solution architect certification concepts
Sure Manivannan, I'll be creating more content soon.
I'm taken by this. I had the privilege of reading something similar, and I was truly taken by it. "Mastering AWS: A Software Engineers Guide" by Nathan Vale
Thanks bill for your feedback!
amazing skill.
Thanks Sam!
amazing!
Thanks Thiago, glad you liked it!
adding a stride diagram to it will be excellent
Hi Massyl,
Thanks for your feedback. I’ll surely keep this in my mind for the future videos.
Make more such project videos for us freshers... and in easy to understand language... 👍
Thanks Mahadevi! Im planning to make more such videos. Stay tuned.
Thank you ajit.🌟
Hi,
Glad it was helpful for you!
Awesome video +++++++++++++ 🙂
Thanks Mohamed, glad it was helpful for you
vera level G
Hi Kathiravan,
Can you please elaborate on this.
Awesome
Thanks Rakesh, glad you liked it!
Well done
Thanks Senthil, glad you liked it!
Thats So Cooool
Thanks for your feedback!
awesome
Thanks Max for your feedback, glad it was helpful for you.
well done
Thanks Massyl. Glad it was helpful for you.
thank you so much
Hi Avinash,
Glad it was helpful for you.
nice class sir......😍
Thank you! Stay tuned for more.
very nice
Thanks
Thx so much
Thanks for the feedback
Thank you
Glad it was helpful to you!
Hello All,
The much-awaited terraform version of the three-tier architecture is here - ruclips.net/video/Hl81P5CrBSk/видео.html.
Hope it helps!
Thank you for this video, on the next video can you add autoscalling service with similar case
Sure! This video was intended for beginners, the idea was to demonstrate networking with a simple use-case. I'll surely cover complex use cases in the near future. Please stay tuned!
Yeah
I was expecting ASG there...
Nice video. Requesting to create another video on creating this entire project using terraform. Also, how can we do CI/CD in this project?
Sure, Onik!
I have planned to create the same three tier architecture using Terraform as well. Will notify you, once the video is out!
@@ajitinamdartech Hi Ajit, have you created this architecture using terraform?
Hi,
Not yet. It will be out soon.
@@ajitinamdartech Please create it soon.
@Vinayak Salunkhe sure
Hello, Thanks for the great video. But why didn't you add the jump server instance on your architecture diagram?
Hi Sonali,
That's a valid question. I should have added jump server as well as a part of the architecture diagram.
Thank you for the easy-to-understand video. I was wondering if I have to host my own react application, do I just do git clone and follow the yarn build procedure on the app servers?
Hello,
The build process will depend the technology you choose, I will create a video on react soon. Thanks!
Hi Ajit, amazing tutorial thank you. I have a question:
I have created the security group for the ALB and created the Target group with 2 instances (public-web-subnet-1 & public-web-subnet-2), however when I add the html file in server 1, my ALB does not show that it is rerouting between server 1 and server 2. How do I resolve this? Thank you.
Hi,
Have you opened port on your server for alb sg as source?
@@ajitinamdartech Hello! I found my issue - I did not install the LAMP stack in my second server, so it did not route there. Thanks for the tutorial Ajit!
@@Punack99 Im glad it was useful for you!
Greate Video! I have some few suggestions: What about adding DNS/Rout53, Autoscaling and taking this tutorial to intermediate stage by using an Iaac tool (SSM or terraform)
Sure Shey, I have planned to extend this tutorial to the next level by adding Route 53 and Autoscaling using Terraform IaaC
Hi Shey,
I have released a similar version with Terraform. Please have a look. Hope it helps.
ruclips.net/video/Hl81P5CrBSk/видео.html
Amazing explanation, I have one doubt, If we create three NAT gateways (one for each AZ), so should we put the entry all NAT or anyone NAT in the route table of private app and db route tables?
Hi Shamil,
If we create three NAT gateways in one AZ each, you will have to create separate route tables for that layer. You can’t have multiple NAT gateways in a single route table.
@@ajitinamdartech Oh okay got it. Thank you for explaining that😊
Hi Ajit, I have question, you have created 9 subnets by using 3 AZ's but you were using only the first & second AZ's for deploying! Any specific reasons? cloud you please explain
Hi Dhayalan,
Thanks for asking this question. I have deployed the application in only two availability zones as this is a demo. In real life scenarios you can deploy across all three AZs. Hope this answers your question.
Thank you very much for you awesome tutorial.
I would like to know, how to add NFS in your configuration for sharing web application code source between the two instances of EC2 ?
Hi Adon,
Thanks for your feedback. Glad it was helpful to you.
I have noted your request on NFS.
@@ajitinamdartech thank you 👌👌👌
I really wish you can show how to build this for a react/nextjs running expressjs with api gateway to different dbs. I will look through what you have maybe already done but yeah, case study by web stack would be great!
Sure, Tony. I have noted your request. Thanks.
@@ajitinamdartech Ahhh yeah thank you, I've been using cloudcraft to help visualize things, but this primer helped a lot
this is really a great video. can you please list all the commands used to create the lamp server? Thanks
Hi Ebenezer,
Please refer this link - docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html
Excellent Video.. I am a beginner to AWS and this video has helped to learn the architecture from basic. One query; in the Php MyAdmin login page, when did you created username and password? I means which username and password you entered? Please clarify.
Hi,
During the RDS creation I have passed the username and the password in here (24:16)
Thanks for the video! I have two questions there is any easy way to rename a subnet? Also when I try to copy the key pair to the jump server I get a message "chmod: cannot access ‘mykeypair.pem’: No such file or directory" The file is currently on the downloads folder.
Hi Debbie,
Thanks for your feedback. I think you are not in the right directory while trying to chmod. Also, if you want to rename the subnet, you can update the name tag if that helps.
Hi Debbie,
Please follow this video, if you are still facing issues.
ruclips.net/video/60WzsSE2-yQ/видео.html
Just a quick question, what did u do with third AZ resources, they were not used anywhere, like web_sunet03,db_subnet03 and so on? the compute resources used only subnets from AZ-us_east_2a and 2b.
Got the response from the comments..A very informative and comprehensive video.
Thanks Pooja, glad it was helpful for you!
I haven’t consumed the third AZ as it is a demo, for real life scenarios if your budget permits and you need that kind of resilience, you must always use all 3 AZs.
hello, I would like to ask you in 1:25 is diagram with two AZ1. Is it corrent? Shouldn't it be AZ1 and AZ2?
Hello,
Thanks for pointing this out. It's a typo!
It should be AZ1 and AZ 2.
Hello! You configured pma only on one ec2.what about the other one .Do we have to do the same configurations on the other one too?
Hi, yes you need to do the same across the other ec2 instance as well.