If you are new to AWS, I would highly recommend starting the AWS Networking concepts first; below is the link you can refer to: ua-cam.com/video/yUhzvVrwkV8/v-deo.html For any issues you are facing, join our discord community, and someone will help you out discord.com/invite/TNCs4BRzq8
Hi @TechTutorialswithPiyush Piyush, I have followed this lecture closely by documenting the architecture as the lecture progressed. It was well explained. Thanks a lot for all the good work. It seems like we will end up with three instances each for the app and web tiers afture deploying the ASG. If that is the case can we delete the original ec2(bluenprint) so we just have two instances at all times to optimize cost?
Great job buddy! Kudos to you for the hard work in implementing the project. Many more projects coming up soon. I hope you are ready to implement those.
Thank you for the feedback! Yes, currently I am busy recording the Kubernetes series which I will start publishing from the next week after that is done, I will work on more projects like this one.
Hi Piyush, Thanks a lot for sharing your knowledge with us and making us understand the concept with clear explanation. I really appreciate the work you are doing👌
Hi Piyush! I'm having issues while trying to connect to my EC2 instance through the seession manager. I get an error sign with the following message: "We weren't able to connect to your instance. Common reasons for this include: ..." I have assigned the IAM role with the two permissons (the AmazonSSMManagedInstanceCore and the AmazonS3ReadOnlyAccess). What can be wrong? Thanks and amazing content!
Hello Piyush. This series was wonderful. Weldone. I have a question.. Why don't you also use Terraform IaC to provision the infrastructure rather than doing everything on the console. I believe that is the industry standard. Everyone of us will learn from that as well. Do please let me know your thought about that. Once again thank you for this masterpiece series
Thank you for the amazing feedback and I agree with you about Terraform. I wanted everyone to get their hands dirty on AWS console before actually trying it with Terraform. If you see the next video in this series, it is using Terraform custom modules to provision a 2-tier architecture. I hope that answered your question
@@TechTutorialswithPiyush Thank you Piyush for sharing your amazing skillet with us. The 2-tier IaC was wonderful. If you can, you can also do the 3-tier IaC at your earliest convenience. Thank you
Hi, Can you verify below : - dbconfig should be inside the apptier folder - Can you verify if the details of dbconfig is correct - check the logs using pm2 logs Empty reply from the server usually comes when their is issues with your db setup or dbconfig, request you to please have a look at the below thread in our discord server, many people have faced the similar issue and the resolution steps would also be there in those resolved threads discord.com/channels/1030513521122885642/1143195184029520012
Thank you so much Rahul for the amazing feedback and support! These words means a lot to me, and I will make sure to keep uploading useful content consistently :)
Hi Piyush. SQL community versions aren't available on sql website anymore. Do you have updated commands which you shared in description if we can use. Thanks
Hello, I watch from Brazil. Congratulations on the excellent video, very educational. I didn't quite understand the connections between the subnets, the route tables and the nats for the private subnets. When you configured the public route table, you included both availability zones, AZ1 and AZ2, but when you configured the application's private route table, you included only the AZ1 zone and did not configure the private route table for the database. Could you explain better please?
Thank you for the amazing feedback 🧡 To understand these networking concept, I would highly recommend to go through the below video and feel free to reach out if you have any further questions ua-cam.com/video/yUhzvVrwkV8/v-deo.html
I am a backend tech lead. With day to day activies in design , development , testing and deployment in amazon cloud . I know and do deployment in amazon cloud hands on . Knows ubuntu linux and java backend . But dont now aws . How thats different 🤔🤔
Hello, Sorry I didnot quite understand your question. You mean you work on the development side on AWS and do the deloyments as well but how's that different from setting up the infra? Is that your question then, I can try answering it. Setting up your infrastructure is usually happens using IaaC tools such as Cloud Formation, Terraform, Pulumi etc and this is mainly done by a seperate team, this could be Infra team or DevOps team or a Cloud team. The infra needs to be setup so that other teams including developments start using it, there is also a need of regular maintenance, creating CICD pipelines, and other operational tasks carried out by these teams. Let me know if this makes sense or if I misunderstood your question. Regards, Piyush
Hii piyush, I facing some issue. Upto the Part 4 I completed everything. In part 5 after creating the web server instance I'm not able to connect in session manager I getting issue "SSM Agent is not online".
I have replied to your message on Twitter, Can you please try that. Also, you can join our Discord server and share the details over there, we can keep the communication open until your issue is resolved. thecloudopscommunity.org/ Click on join us button on the above link and then post your question in #help-10weeksofcloudops channel
I dont think I have used system manager in this video. Do you mean session manager? Those commands are specific to how do we build and deploy a nodejs application. Try to create a sample nodejs application, a simple hello world would work and try to build and deploy it. Also check out pm2 which is a process manager that makes sure your process is running in the background even if you close the terminal. Let me know if you have any questions.
I believe you have opened the inbound port on your web instance to be only able to accessed via loadbalancer and not to the outside world. LB --> Web instance on port 443/80 and not access on port 443/80 on web instance from 0.0.0.0
Hi sir, could you please tell ,why you have attached only private-subnet-AZ1 to private route table not private-subnet-AZ2 ?? and one more question why you have not registered EC2 instance in target group ??
Hello Sankalp, It should be done for the Subnets in both the AZs, I might have showed only one. Can you provide me the timestamp where you have this doubt? I will check and let you know.
@@TechTutorialswithPiyush Timestamp is 20.18 please check , bcz you not associate the private-subnet-AZ2 and DB subnet with the Route table . Please Reply .
Can you check if you have proper security groups set? inbound on the ec2 instances, and outbound from the ELB to EC2. If you are still facing the issue, I would suggest joining our Discord server and share complete details over there, the steps you have followed till nw, the error message etc and someone will help you out
hi sir! i have followed through your video and made the same process but when i am giving the command "pm2 list" its giving the status as "errored". what may be the cause sir?
Hello Nitin, Can you check a few things - if your db config has correct details?? - If your db config is inside the app_tier folder? - can you run pm2 logs and see if it shows any error? If you are still facing the issue , join our discord community , link on our website www.thecloudcommunity.org and share your issue in help-10weeksofcloudops channel, someone will help you
Hello again! In part 4, when configuring the internal alb, you define port 4000 as the nodejs application port. In my case, I have 9 nodejs applications running on different ports. I thought about configuring Nginx to access port 80 and then configuring the default file and configuring the proxy pass for each application, since AWS does not allow more than 4 target groups. What would security be like in this case? Or do you suggest a different strategy?
Hi Sir, I have a doubt. Whenever i commit any changes in my application code ( frontend and backend ). How Should i update that code in this 3 tier application?
Hello Naveen, I would suggest implementing a CICD pipeline to make any changes. For now, you can make your changes locally and upload the folder to a S3 bucket and then download that on the server/
thank you sir, i did this project and at the final I a can connect with my browser to the page but I can't add the new elements in the table, i collapse the table fields like you do it at 1:09:50 but nothing is displayed in the table, have you any idea?
Hello, Can you please join our discord community and share the detailed steps you have followed and where you are stuck at the moment. There is a dedicated help channel for 10weeksofcloudops, you can post your query there. Link to our discord channel will be available on our community website thecloudopscommunity.org
in the intial video it was writtern 1 prjct per week but there are no posts in this playlist since last month is this series discontinued or is it like in channel members only ..? i am new here so sryy but idk
Hello Buddy, Glad to know that people are following the videos and waiting for the next ones. Yes, that was correct, As part of our Discord community , we started with 1 project per week but as the complexity is getting increased in every challenge, we are extending the challenges for 2-3 weeks to give enough time for the participants to complete it. Currently we are on week 5, I will be recording week 3-4 videos next week and week 5 video after that. Stay tuned for the updates and feel free to join our community to get the real-time assistance from other community members. Link is in the description.
I did not face this error, what steps have you performed till now and in which step you are getting this error? please open a new issue in 10weekofcloudops channel in our discord server and someone will help you.
Sorry buddy I didn't understand your question. This video was about a 3 tier implementation which includes front end backed and database, Did you mean anything else?
Hey, Did you install pm2 ? most importantly, have you performed the steps from this page? catalog.us-east-1.prod.workshops.aws/workshops/85cd2bb2-7f79-4e96-bdee-8078e469752a/en-US/part3/configureinstance
If I am creating architecture using terraform ...they how can I use pipeline for this 3 tier architecture and how can I continuously deploy the newly built artifact.. please tell me bro
Hello buddy, Creating a CICD pipeline for a three tier architecture is not something that I can share over a comment. I will try to create a video on the same. You can check my other CICD videos in Azure DevOps series or Jenkins series and you will get the idea.
Hi ,I am trying to connect from the session manager to the mysql and no lack . when i write mysql . i get nothing and when i put the correct one for mysql -h CHANGE-TO-YOUR-RDS-ENDPOINT -u CHANGE-TO-USER-NAME -p and still getting " bash :mysqladmin: command not found " .
Hello, Looks like your mysql client was not installed properly. Join the discord server(link in the decription) and share your issue in the #10weeksofcloudops help channel along with the steps you have performed, error you are getting etc.
@Piyush How did your 1st instance in private subnet connected to Nat-GTW got connected to internet? My full VPC setup is correct and security group also, I cannot connect instance to session manager and also not pinging
Thank you for your feedback. I did not use S3 in this demo as it was not required. S3 is used to store static files such as images, videos etc so that it can be rendered on the web application. For example, When you have a website with a product catalogue such as amazon.com, each product has a lot of metadata such as thumbnails, images, images people post in reviews and so on, those images need to be stored somewhere so that it can be loaded on the website with minimal lag/latency, in that case we use S3 and cloudfront. I hope this answered your question, if you need more details, I would suggest checking out Project 1 of this series which is about S3 and cloudfront.
Sir when will you upload tutorial of animated architecture of post of anikit jodhani. It will be very helpful for most of the people. Waiting for the reply or tutorial. Thank you sir 😊
You can use t2.micro for frontend and backend servers that are covered under free trial , there will be a small cost of ELB. RDS also has some cost of using it, if you dont want to spend that, you can setup your RDS cluster (Master and read-replica) on seperate EC2 servers and use that.
I believe most of the services will be covered in the free tier. but you can have a look to the aws site and check out what all services are covered under that and you can also generate a pricing estimate using the aws pricing calculator. Top: Dont leave your services running when you are not using it
There could be issues with your DB config, can you check its details and also make sure that the file is there in the app tier folder? If you still face the issue, you can join our discord server and share the details over there
Hi sir nice i am trying you're project.... I am getting error while creating security group in part 1..... While selecting my ip security group its showing failed to fetch please reply for my message
Hello, Thank you for the feedback. Feel free to join our discord community(link is in the description) and share you error details in the help channel. We will help you out
You can use t2.micro for frontend and backend servers covered under a free trial; there will be a small cost for ELB. RDS also has some costs of using it. If you don't want to spend that, you can set up your RDS cluster (Master and read-replica) on separate EC2 servers and use that. Also, I would recommend checking out the price estimates using AWS Pricing calculator
is it possible to setup an igw and a nat gateway with aws free tier, my question is can i setup this lab using aws free tier without incuring any costing ?
@@TechTutorialswithPiyush thanks piyush, i jist started your 10eeekscloudops challenge, and its actually a hands-on approach in learning cloud ans devops, thanks a lot for the initiative taken.
Hi Sir , I have been trying to do this lab and i am not able to connect my instance through the session manager , I have checked the route tables as well , Connect button is not shown
Hello Deepthi, Feel free to join our Discord community and ask your query over there. Someone should be able to help you out as it will be difficult to look into the issue by replying here on the youtube. tr.ee/1gYq2dJ73E Join the server and ask your question in help channel or week2 level
Hello Rizwan, you might be missing a few steps or something was not done correctly. Can you verify the below:- - Your port was opened in the security group? - Have you updated the load balancer dns correctly in the nginx.conf? - your nginx conf was configured properly and there are no syntax errors in that while updating the loadbalancer's dns? - check the errors from pm2 logs command and share
Yes I mean my front end which is react js hosted S3 and this will fetch the data from backend API hosted on EC2 and EC2 will connect with RDS . @@TechTutorialswithPiyush
@@TechTutorialswithPiyush and also i successfully completed this lab i am able to login my webserver and page also opening except database. Thank you so much
If you are using a high available and fault tolerant architecture meaning you have multiple copies of the same server running, you need some sort of load balancing to load balance the traffic to downstream. There are other alternatives of nginx such as apache that you can use.
Thank you so much for this . However I am having problems at this point : module.exports = Object.freeze({ DB_HOST : '', DB_USER : '', DB_PWD : '', DB_DATABASE : '' }); Pls which exactly is the DB_HOST and DB_DATABASE
the db that you have created when you logged into the mysql instance, if you are still facing the issue, feel free to join our discord issue and share your query in the help channel, link of discord in the description section
@@TechTutorialswithPiyush pls what do I enter under DB_DATABASE I understand DB_HOST is the db I created when logged into mysql instance. My application status shows eroded . Thanks in anticipation.
@@TechTutorialswithPiyush my index status still shows eroded. I appreciate your response . I have tried getting into the discord but no one is online .
Hello , You can use t2.micro for frontend and backend servers that are covered under free trial , there will be a small cost of ELB. RDS also has some cost of using it, if you dont want to spend that, you can setup your RDS cluster (Master and read-replica) on seperate EC2 servers and use that. You can also check out AWS pricing calculator and make sure to destroy the resources after the use.
Hello sir. Your video is so helpfull. It's related to my Final year Project I'm struggling to find out solution. I want to creat same website which take data and store it in database with Aws. But I can't able to edit your code. How I will do that? Kindly help
Hello Faiz, Thank you for sharing the feedback. Can you please fork the repo and edit it locally. I can assist you with the implementation and infrastructure hosting but I wouldn't be able to help you much with the code itself as that is not my area of expertise.
@@TechTutorialswithPiyush Yes I need help with hosting. I have done my development. I created a react app using the database MySQL, which I created using a community server and MySQL workbench desktop application. I am following your video to host it on AWS. I have done everything according to the video but am stuck on the packages you used for installing the MySQL client. I am trying to install them but getting errors. kindly suggest something as this is my final year project.
Depends upon company to company but most of the companies nowadays working on AI, as a sols architect you would have to design solutions, architecture and POCs, it could require coding
Hi Bro,I had watching in your videos,it was explained as well,thank you sharing your knowledge.It' small request could you please share me realtime interview questions and another project aws and devops.Thanks Durairaj
Hello Durairaj, Thank you for the feedback! I will be sharing the real-time projects and implementation as part of #10weeksOfCloudOps challenge. This was project 2, we have 8 more projects in the pipeline, you can also join our discord server to get the weekly updates. Link is in the description.
Hey Pankaj, Please make sure to edit the config file and place that in the same folder as your code. also share the error message from pm2 logs command
@@TechTutorialswithPiyush for me also same and my error is /root/app-tier/TransactionService.js 0|index | - /root/app-tier/index.js 0|index | at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15) 0|index | at Module.Hook._require.Module.require (/root/.nvm/versions/node/v16.20.1/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:81:25) 0|index | at require (node:internal/modules/cjs/helpers:108:18) 0|index | at Object. (/root/app-tier/TransactionService.js:1:17) 0|index | at Module._compile (node:internal/modules/cjs/loader:1198:14) 0|index | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) 0|index | at Module.load (node:internal/modules/cjs/loader:1076:32) 0|index | at Function.Module._load (node:internal/modules/cjs/loader:911:12) 0|index | at Module.require (node:internal/modules/cjs/loader:1100:19) 0|index | at Module.Hook._require.Module.require (/root/.nvm/versions/node/v16.20.1/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39) { 0|index | code: 'MODULE_NOT_FOUND', 0|index | requireStack: [ '/root/app-tier/TransactionService.js', '/root/app-tier/index.js' ]
I never said, this video was for beginners. Actually this is a part of 10weeksofcloudops challenge and this is the solution of week2 challenge. Focus was more on completing the task rather than the concepts. If you check the github repo, you will find the prerequisites, resources and other related links
@@TechTutorialswithPiyush Thank you, Piyush. Am sorry if I sounded rude, I really don't mean to. Please don't be offended. Am not a beginner, I have my AWS Solutions Architect Associate and Cloud Practioner. I was following so closely till I got to a part that was like a dead end. I was able to pull through after much effort. Am grateful for all the resources you are sharing. Thanks once again and please don't be offended.
If you create the resource and destroy it as soon as you are done only a few resources will be charged such as ELB, NAT and RDS. Cost you can check from AWS pricing calculator, it will be a good learning exercise for you.
There could be some setup issues. Can you join our discord community and share the details, where exactly are you stuck, error messages, pm2 logs etc. we will help you.
Hello Ankit, it shouldnt cost you that, you could have used the dev RDS instance with one replica. However, if you want, you can install mysql on EC2 server as master and read replica and implement the data replication across the two servers, that's even better in terms of learning. Good luck
Hi! Getting an error "fatal error: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied" when trying to give this command: cd ~/ aws s3 cp s3://BUCKET_NAME/app-tier/ app-tier --recursive . Pls help.
Hello Saumya, Looks like your IAM user doesnt have access to download the objects from this bucket. Make sure your S3 role attached to the EC2 instance so that it can authenticate on your behalf.
@@TechTutorialswithPiyush Hi Sir, in my knowledge i had correctly configured all components of the architecture but still at the end, i am getting 502 Bad Gateway error while trying to connect to external facing loadbalancer and i also cannot connect to public IP of the web tier instance. Is there a specific issue causing this? Pls help.
@@user-qt5ee6it5d check and verify the security group rules. Feel free to join the discord channel and someone will be able to help you troubleshoot the issue. link is in the description
Hi @Piyush, I am having an error can you please help me, I am at the middle of this project. I have done ""pm2 start index.js"" and status is "Online" but when I did ""pm2 list"" it is showing "errored" in status.. What does it mean...??
Hello, This usually happens when there is an issue with your dbconfig , please check the same and you can run pm2 logs to check the reason for failure.
If you are new to AWS, I would highly recommend starting the AWS Networking concepts first; below is the link you can refer to:
ua-cam.com/video/yUhzvVrwkV8/v-deo.html
For any issues you are facing, join our discord community, and someone will help you out
discord.com/invite/TNCs4BRzq8
This was a wonderful video sir! Learned a lot of new things while implementing it side by side. Very helpful!
Glad you found it helpful Rohan! Appreciate your feedback. Happy learning
Sir your video one of the best in the UA-cam. Keep doing ❤
Thanks a ton
Hi @TechTutorialswithPiyush Piyush, I have followed this lecture closely by documenting the architecture as the lecture progressed. It was well explained. Thanks a lot for all the good work. It seems like we will end up with three instances each for the app and web tiers afture deploying the ASG. If that is the case can we delete the original ec2(bluenprint) so we just have two instances at all times to optimize cost?
Successfully implemented. Very much helpful. Keep up the good work. ❤
Great job buddy! Kudos to you for the hard work in implementing the project. Many more projects coming up soon. I hope you are ready to implement those.
DID IT COST U ANYTHING?
that's awesome bro! hope you can keep upload many video like this
Thank you for the feedback! Yes, currently I am busy recording the Kubernetes series which I will start publishing from the next week after that is done, I will work on more projects like this one.
Much appreciated your effort, mate. Thanks.
My pleasure! I am glad you found it helpful :)
Hi Piyush,
Thanks a lot for sharing your knowledge with us and making us understand the concept with clear explanation. I really appreciate the work you are doing👌
You are most welcome Asif! I am glad and appreciate your feedback.
@@TechTutorialswithPiyush Please try to create this 3 tier architecture using Terraform modules. It will be a great to learn from you :)
I created the project 3 using terraform which is a 2-tier using terraform, almost the same concept. Please try it out and let me know
@@TechTutorialswithPiyush Ok sure
You are always a saviour for me. You helped me a lot in last 2 months.
Always the Best. Thank you Piyush Sir.
Thank you for the great words but it's all your hard work an dedication. Keep up the good work buddy.
An Excellent Video, High Five to you. Implemented all the same with php code and apache server.
Thank you so much for the feedback, I am glad that you found it helpful :)
Hi Piyush! I'm having issues while trying to connect to my EC2 instance through the seession manager. I get an error sign with the following message:
"We weren't able to connect to your instance. Common reasons for this include: ..."
I have assigned the IAM role with the two permissons (the AmazonSSMManagedInstanceCore and the AmazonS3ReadOnlyAccess). What can be wrong? Thanks and amazing content!
Hello, Can you please verify the route table attached to the subnets and ensure that it has route to the internet through the NAT gateway
hi , did you get connected with the instance ?
Hi , did you find any solution ? I am stuck on same issue cannot connect instance
Faced same issue. In my case, I had mistakenly attached private subnet to NAT gateway instead of public web subnet
im having this same exact issue
Hello Piyush. This series was wonderful. Weldone. I have a question.. Why don't you also use Terraform IaC to provision the infrastructure rather than doing everything on the console. I believe that is the industry standard. Everyone of us will learn from that as well. Do please let me know your thought about that. Once again thank you for this masterpiece series
Thank you for the amazing feedback and I agree with you about Terraform. I wanted everyone to get their hands dirty on AWS console before actually trying it with Terraform. If you see the next video in this series, it is using Terraform custom modules to provision a 2-tier architecture. I hope that answered your question
@@TechTutorialswithPiyush Thank you Piyush for sharing your amazing skillet with us. The 2-tier IaC was wonderful. If you can, you can also do the 3-tier IaC at your earliest convenience. Thank you
@@MrRuufman Its mostly the same with three tier as well. Maybe I will do that after I'm done with both the ongoing series
Hello sir, i got issue to fetch database from server. Its showing empty reply from server
Hi, Can you verify below :
- dbconfig should be inside the apptier folder
- Can you verify if the details of dbconfig is correct
- check the logs using pm2 logs
Empty reply from the server usually comes when their is issues with your db setup or dbconfig, request you to please have a look at the below thread in our discord server, many people have faced the similar issue and the resolution steps would also be there in those resolved threads
discord.com/channels/1030513521122885642/1143195184029520012
Hi sir, i can't wait without subscribe your channel😊. You deserve million subscriber. Keep uploading useful content like this.
Thank you so much Rahul for the amazing feedback and support! These words means a lot to me, and I will make sure to keep uploading useful content consistently :)
curl localhost:4000/transaction
curl: (52) Empty reply from server
when i run this command its showing empty response, i have checked port number also
Issue seems to be with your security groups
Are you solve your issues I am still stuck on this problem ? Please help
What exactly is the issue? join the discord server and share complete details along with the error
@gauravdharak167 Link is in the description section of this video. After joining post your issue in the help channel
@@TechTutorialswithPiyush Yes sir, I already ping my issue in community channel
Hi Piyush. SQL community versions aren't available on sql website anymore. Do you have updated commands which you shared in description if we can use. Thanks
I believe, someone shared the updated command in our discord community. Can you please join our discord and check out the az devops help channel
@@TechTutorialswithPiyush Ok Thanks dear. I have joined discord
@@decorum38 welcome
Hello, I watch from Brazil. Congratulations on the excellent video, very educational. I didn't quite understand the connections between the subnets, the route tables and the nats for the private subnets. When you configured the public route table, you included both availability zones, AZ1 and AZ2, but when you configured the application's private route table, you included only the AZ1 zone and did not configure the private route table for the database. Could you explain better please?
Thank you for the amazing feedback 🧡 To understand these networking concept, I would highly recommend to go through the below video and feel free to reach out if you have any further questions
ua-cam.com/video/yUhzvVrwkV8/v-deo.html
@@TechTutorialswithPiyush thank you very much!
@@hitsistemas365 Good luck Buddy 😊
I am a backend tech lead. With day to day activies in design , development , testing and deployment in amazon cloud . I know and do deployment in amazon cloud hands on . Knows ubuntu linux and java backend . But dont now aws . How thats different 🤔🤔
Hello, Sorry I didnot quite understand your question. You mean you work on the development side on AWS and do the deloyments as well but how's that different from setting up the infra? Is that your question then, I can try answering it.
Setting up your infrastructure is usually happens using IaaC tools such as Cloud Formation, Terraform, Pulumi etc and this is mainly done by a seperate team, this could be Infra team or DevOps team or a Cloud team. The infra needs to be setup so that other teams including developments start using it, there is also a need of regular maintenance, creating CICD pipelines, and other operational tasks carried out by these teams. Let me know if this makes sense or if I misunderstood your question.
Regards,
Piyush
@@TechTutorialswithPiyush ok . Thanks . There is separate devops team. They may be doing what you describe ☺️☺️
@@subramanianchenniappan4059 😄 yep , If you are a developer you don't usually do these things but it's good to know how infra is setup
Hii piyush, I facing some issue. Upto the Part 4 I completed everything. In part 5 after creating the web server instance I'm not able to connect in session manager I getting issue "SSM Agent is not online".
I have replied to your message on Twitter, Can you please try that. Also, you can join our Discord server and share the details over there, we can keep the communication open until your issue is resolved.
thecloudopscommunity.org/
Click on join us button on the above link and then post your question in #help-10weeksofcloudops channel
Thank you so much for helping me; This video is very excellent 👍
You're most welcome! I am glad our community was able to help you.
Beautifully explained
Thank you so much 🙂
i cant understand the commands you implemented in system manager. what should we learn to understand that commands?
I dont think I have used system manager in this video. Do you mean session manager? Those commands are specific to how do we build and deploy a nodejs application. Try to create a sample nodejs application, a simple hello world would work and try to build and deploy it. Also check out pm2 which is a process manager that makes sure your process is running in the background even if you close the terminal. Let me know if you have any questions.
Question how come I can view the finished app through the dns of the load balancer but not the ip address of the web instance?
I believe you have opened the inbound port on your web instance to be only able to accessed via loadbalancer and not to the outside world. LB --> Web instance on port 443/80 and not access on port 443/80 on web instance from 0.0.0.0
Hi sir,
could you please tell ,why you have attached only private-subnet-AZ1 to private route table not private-subnet-AZ2 ??
and one more question
why you have not registered EC2 instance in target group ??
Hello Sankalp, It should be done for the Subnets in both the AZs, I might have showed only one. Can you provide me the timestamp where you have this doubt? I will check and let you know.
@@TechTutorialswithPiyush Timestamp is 20.18 please check , bcz you not associate the private-subnet-AZ2 and DB subnet with the Route table . Please Reply .
very informative vedio....god bless u ...Bro
Thanks a lot for your wishes, I am glad that you found it helpful ❤️
Thanks for this project. highly appreciated.
My pleasure and thank you for the feedback
app-tier-target-group always show 2 unhealthy instances what should i do??
Can you check if you have proper security groups set? inbound on the ec2 instances, and outbound from the ELB to EC2. If you are still facing the issue, I would suggest joining our Discord server and share complete details over there, the steps you have followed till nw, the error message etc and someone will help you out
Indeed you explained very well❤.
Thank you so much ❤️
hi sir! i have followed through your video and made the same process but when i am giving the command "pm2 list" its giving the status as "errored". what may be the cause sir?
Hello Nitin, Can you check a few things
- if your db config has correct details??
- If your db config is inside the app_tier folder?
- can you run pm2 logs and see if it shows any error?
If you are still facing the issue , join our discord community , link on our website www.thecloudcommunity.org and share your issue in help-10weeksofcloudops channel, someone will help you
Hello again! In part 4, when configuring the internal alb, you define port 4000 as the nodejs application port. In my case, I have 9 nodejs applications running on different ports. I thought about configuring Nginx to access port 80 and then configuring the default file and configuring the proxy pass for each application, since AWS does not allow more than 4 target groups. What would security be like in this case? Or do you suggest a different strategy?
Thank you for the tutorial, great video
I really appreciate that you took the time to watch the tutorial and thank you for the kind words!
Great Work Sir
Thank you so much!
Hi Sir,
I have a doubt. Whenever i commit any changes in my application code ( frontend and backend ). How Should i update that code in this 3 tier application?
Hello Naveen, I would suggest implementing a CICD pipeline to make any changes. For now, you can make your changes locally and upload the folder to a S3 bucket and then download that on the server/
thank you sir, i did this project and at the final I a can connect with my browser to the page but I can't add the new elements in the table, i collapse the table fields like you do it at 1:09:50 but nothing is displayed in the table,
have you any idea?
Hello, Can you please join our discord community and share the detailed steps you have followed and where you are stuck at the moment. There is a dedicated help channel for 10weeksofcloudops, you can post your query there. Link to our discord channel will be available on our community website thecloudopscommunity.org
in the intial video it was writtern 1 prjct per week but there are no posts in this playlist since last month is this series discontinued or is it like in channel members only ..? i am new here so sryy
but idk
Hello Buddy, Glad to know that people are following the videos and waiting for the next ones. Yes, that was correct, As part of our Discord community , we started with 1 project per week but as the complexity is getting increased in every challenge, we are extending the challenges for 2-3 weeks to give enough time for the participants to complete it. Currently we are on week 5, I will be recording week 3-4 videos next week and week 5 video after that. Stay tuned for the updates and feel free to join our community to get the real-time assistance from other community members. Link is in the description.
Great video, Piyush 😀
Thank you so much Sunil! I am glad that you liked it. Can you please post the comment on Gitlab video again? I am not able to find your query.
How did you overcome the error - need javascript to run the app ( in the web server instance )
I did not face this error, what steps have you performed till now and in which step you are getting this error? please open a new issue in 10weekofcloudops channel in our discord server and someone will help you.
Can you please make a video on 3 tier application in DevOps as a project which includes front end , backend and database
Sorry buddy I didn't understand your question. This video was about a 3 tier implementation which includes front end backed and database, Did you mean anything else?
Hello when running the [pm2] sudo command it says no such file exist
Hey, Did you install pm2 ? most importantly, have you performed the steps from this page?
catalog.us-east-1.prod.workshops.aws/workshops/85cd2bb2-7f79-4e96-bdee-8078e469752a/en-US/part3/configureinstance
Nice explanation ❤ can you make a video for 3 tier architecture in Azure . It'll be helpful for many students
Thanks for the wonderful feedback! Let me put this item in my to do list
If I am creating architecture using terraform ...they how can I use pipeline for this 3 tier architecture and how can I continuously deploy the newly built artifact.. please tell me bro
Hello buddy, Creating a CICD pipeline for a three tier architecture is not something that I can share over a comment. I will try to create a video on the same. You can check my other CICD videos in Azure DevOps series or Jenkins series and you will get the idea.
Hi ,I am trying to connect from the session manager to the mysql and no lack . when i write mysql . i get nothing and when i put the correct one for mysql -h CHANGE-TO-YOUR-RDS-ENDPOINT -u CHANGE-TO-USER-NAME -p
and still getting " bash :mysqladmin: command not found " .
Hello, Looks like your mysql client was not installed properly. Join the discord server(link in the decription) and share your issue in the #10weeksofcloudops help channel along with the steps you have performed, error you are getting etc.
Great video !
Thank you so much!
What if i want to use the one public facing load balancer and get trafic from web server to app server ??? Is there any way..?
But this is what we are doing, isn't it? please correct me if I am wrong in undestanding the question
@Piyush How did your 1st instance in private subnet connected to Nat-GTW got connected to internet? My full VPC setup is correct and security group also, I cannot connect instance to session manager and also not pinging
Please join our discord and share all the details. Your security groups, route tables etc
is this a production grade level project ? can be usd for fresher in the interview ?
Yes definitely, Its when asked by Amazon for an experienced professional.
Nice sir ❤ and create one more project for any flutter app
I will try my best :) Thank you for the feedback
hello sir, the entire video is really helpful but I've one doubt, is it mandatory to use s3 ?and why u use it
Thank you for your feedback. I did not use S3 in this demo as it was not required. S3 is used to store static files such as images, videos etc so that it can be rendered on the web application. For example, When you have a website with a product catalogue such as amazon.com, each product has a lot of metadata such as thumbnails, images, images people post in reviews and so on, those images need to be stored somewhere so that it can be loaded on the website with minimal lag/latency, in that case we use S3 and cloudfront. I hope this answered your question, if you need more details, I would suggest checking out Project 1 of this series which is about S3 and cloudfront.
@@TechTutorialswithPiyush got it sir thank you 😊
@@57_harshwardhanshinde94 you're welcome 😊
Hi sir, I'm facing issue while installing mysql client => No match for argument: mysql Error: Unable to find a match: mysql
Hello, Have you tried the commands given in the description section of the video?
yeah later I tried it's working. It took a long time b/w good explanation @@TechTutorialswithPiyush
Does it include a bastion host? and if not is it possible to adjust it after the succesfull deploy of that project?^^
This demo doesnt include a bastion host but you can add it later as well. Make sure you configure the security groups properly
Sir when will you upload tutorial of animated architecture of post of anikit jodhani. It will be very helpful for most of the people. Waiting for the reply or tutorial.
Thank you sir 😊
Hello, I am on a vacation for the next few days, we will record the video once I am back. You will see that soon.
@@TechTutorialswithPiyush will wait for the video.
Hi sir, I really liked the video ❤. Could you please specify what pad you are using to write here 52:55
Thank you so much for the feedback. Link is there in the video itself sketch.io
Very helpful!!
Thank you Suraj, I'm glad that you found it helpful
please let me know, is all the services used in this project are free? If i used this services in the AWS free tier, does it cost me some money?
You can use t2.micro for frontend and backend servers that are covered under free trial , there will be a small cost of ELB. RDS also has some cost of using it, if you dont want to spend that, you can setup your RDS cluster (Master and read-replica) on seperate EC2 servers and use that.
Hello piyush, Thank you for the video. Can you please tell me how much this project will cost?
I believe most of the services will be covered in the free tier. but you can have a look to the aws site and check out what all services are covered under that and you can also generate a pricing estimate using the aws pricing calculator. Top: Dont leave your services running when you are not using it
Hello! Piyush I'm following this project but I'm stuck with "curl: (52) Empty reply from server" in App-tier what could be the error.
There could be issues with your DB config, can you check its details and also make sure that the file is there in the app tier folder? If you still face the issue, you can join our discord server and share the details over there
Have you created more videos linked to AWS workshops?
Hello, As of now only this video is related to AWS workshop. I might create more in the near future
thanx for the exellent lab
Thank you for the amazing feedback! I am glad that you found it helful.
Good and informative video sir. Could you please do the same in azure sir?
I would try my best
34:12 Instead of Using SSM, can i connect using EC2 instance Connect?
Yes, you can use any available methods
@@TechTutorialswithPiyush Thank you Sir
Hello piyush, could you please let us know how much will it cost to implement this project. As i think RDS will cost a lot.
Hello Sahil, I would suggest estimating the cost with the pricing calculator and destroying the resources as soon as you are done
Hi sir nice i am trying you're project.... I am getting error while creating security group in part 1..... While selecting my ip security group its showing failed to fetch please reply for my message
Hello, Thank you for the feedback. Feel free to join our discord community(link is in the description) and share you error details in the help channel. We will help you out
Bhai mujhe yahi chahiye tha ❤ you bhai
Happy to help mere bhai ❤️
Any cost involved in this project steps?
You can use t2.micro for frontend and backend servers covered under a free trial; there will be a small cost for ELB. RDS also has some costs of using it. If you don't want to spend that, you can set up your RDS cluster (Master and read-replica) on separate EC2 servers and use that. Also, I would recommend checking out the price estimates using AWS Pricing calculator
Thanks
is it possible to setup an igw and a nat gateway with aws free tier, my question is can i setup this lab using aws free tier without incuring any costing ?
IGW is free but Nat Gateway will incur some charges
@@TechTutorialswithPiyush thanks piyush, i jist started your 10eeekscloudops challenge, and its actually a hands-on approach in learning cloud ans devops, thanks a lot for the initiative taken.
Hi Sir , I have been trying to do this lab and i am not able to connect my instance through the session manager , I have checked the route tables as well , Connect button is not shown
Could you please tell me what can I do next
Hello Deepthi, Feel free to join our Discord community and ask your query over there. Someone should be able to help you out as it will be difficult to look into the issue by replying here on the youtube.
tr.ee/1gYq2dJ73E
Join the server and ask your question in help channel or week2 level
@@TechTutorialswithPiyush sure , Thank you sir
Hi Deepthi, did you find any solution ? I am stuck on same issue cannot connect instance
@@pratikkshirsagar6481 Feel free to join our discord server. We will help you. link in the description
To many errors for me 🥲🥲🥲
SQL installation error then Pm2 list status showing error try 5 6 times not working pls help me out 😅😅
Pm2 logs not showing port 4000....what should I do ? Pls explain 🙏🙏🙏🙏
Hello Rizwan, you might be missing a few steps or something was not done correctly. Can you verify the below:-
- Your port was opened in the security group?
- Have you updated the load balancer dns correctly in the nginx.conf?
- your nginx conf was configured properly and there are no syntax errors in that while updating the loadbalancer's dns?
- check the errors from pm2 logs command and share
for sql error, you can use the command I have mentioned in the description section of the video or use the ami Amazon Linux 2
Thanks for ur effort,i have just one problem in this command "sudo yum install mysql"it does not works
Thank you so much for the appreciation, you can use the command given in the description, it should work
if you can please give me the commands clearly here in comments
@@TechTutorialswithPiyush Thank you,the problem is solved
Awesome, thanks for letting me know. Just saw your comments.
Hello sir please make a video on animated architecture made by Ankit Jodhani. Thank you sir for all the efforts🙏
Thank you Satyam for the amazing words! Video coming soon this week 😊
@@TechTutorialswithPiyush Thanks 🙏 Piyush, eagerly waiting for the 3D detailed animation video.
@@ritikamalhotra5915 Recording it tonight 😊
Can you please share any doc for implementing the same in Azure
here you go
nishantsingh.hashnode.dev/10weeksofcloudops-secondweek
How can we use 3 tiers if we use front host on S3 host with EC2 used only backend api ?
You mean you have hosted a static website on S3? Does it have a database?
Yes I mean my front end which is react js hosted S3 and this will fetch the data from backend API hosted on EC2 and EC2 will connect with RDS .
@@TechTutorialswithPiyush
DB_HOST : '',
DB_USER : '',
DB_PWD : '',
DB_DATABASE : ''
Please help me what details we need to enter in this section
Thank you in advance
db host is the rds write instance endpoint, db user and password that you have created and db database the database you created using mysql session
Please write the format if possible@@TechTutorialswithPiyush
also thank you for reply
@@TechTutorialswithPiyush and also i successfully completed this lab i am able to login my webserver and page also opening except database. Thank you so much
@@satendrakumar-ue4ze dbconfig file is already provided, please update it using the details provided above
Hi sir, Can we deploye without nginx and how?
If you are using a high available and fault tolerant architecture meaning you have multiple copies of the same server running, you need some sort of load balancing to load balance the traffic to downstream. There are other alternatives of nginx such as apache that you can use.
Loved the description!...Please make a terraform code video for this as well
Thank you buddy for the feedback! For terraform, you can visit the next video in this series 🙂
Thank you so much for this . However I am having problems at this point :
module.exports = Object.freeze({
DB_HOST : '',
DB_USER : '',
DB_PWD : '',
DB_DATABASE : ''
});
Pls which exactly is the DB_HOST and DB_DATABASE
the db that you have created when you logged into the mysql instance, if you are still facing the issue, feel free to join our discord issue and share your query in the help channel, link of discord in the description section
@@TechTutorialswithPiyush Thank you so much for your prompt response. I really appreciate that. DB_DATABASE should be entered as mysql?
@@TechTutorialswithPiyush pls what do I enter under DB_DATABASE I understand DB_HOST is the db I created when logged into mysql instance. My application status shows eroded . Thanks in anticipation.
@@CloudForce10 Db database is the endpoint of your rds writer instance, you can get the value from aws console after going into your rds server
@@TechTutorialswithPiyush my index status still shows eroded. I appreciate your response . I have tried getting into the discord but no one is online .
Sir how much will this cost me in total?
Thank You
Hello ,
You can use t2.micro for frontend and backend servers that are covered under free trial , there will be a small cost of ELB. RDS also has some cost of using it, if you dont want to spend that, you can setup your RDS cluster (Master and read-replica) on seperate EC2 servers and use that.
You can also check out AWS pricing calculator and make sure to destroy the resources after the use.
I am unable to locate the application code you used. timestamp 3903...can you pls help?
Here's the repo
github.com/aws-samples/aws-three-tier-web-architecture-workshop.git
Hello sir. Your video is so helpfull. It's related to my Final year Project I'm struggling to find out solution. I want to creat same website which take data and store it in database with Aws. But I can't able to edit your code. How I will do that? Kindly help
Hello Faiz, Thank you for sharing the feedback. Can you please fork the repo and edit it locally. I can assist you with the implementation and infrastructure hosting but I wouldn't be able to help you much with the code itself as that is not my area of expertise.
@@TechTutorialswithPiyush Yes I need help with hosting. I have done my development. I created a react app using the database MySQL, which I created using a community server and MySQL workbench desktop application. I am following your video to host it on AWS. I have done everything according to the video but am stuck on the packages you used for installing the MySQL client. I am trying to install them but getting errors. kindly suggest something as this is my final year project.
@@FaizaAfzalOfficial Try the commands given in description
@@TechTutorialswithPiyush they are not complete i tried can you send these commands in link it will be helpfull for me
@@FaizaAfzalOfficial No, they are complete. I used the same, and it worked for me. Or maybe just try to install MariaDB
yum install MariaDB
hello sir could you please explain as well along when process the commands in gethub i.e lrt meaning and what it show and so on thanks
9:35 to 25:34 AWS networking part
Thank you for highligting it :) I have a seperate video dedicated to AWS Networking, I have just pinned it in the comments.
as an architect do I need to know coding?
Depends upon company to company but most of the companies nowadays working on AI, as a sols architect you would have to design solutions, architecture and POCs, it could require coding
Can I use S3 to host files as a web tier?
S3 can be used only to static pages, you cannot use that for 3 tier app with backend and db
u are wonderful
Thank you my friend, I'm glad that you found it helpful 😊
Hi Bro,I had watching in your videos,it was explained as well,thank you sharing your knowledge.It' small request could you please share me realtime interview questions and another project aws and devops.Thanks Durairaj
Hello Durairaj, Thank you for the feedback! I will be sharing the real-time projects and implementation as part of #10weeksOfCloudOps challenge. This was project 2, we have 8 more projects in the pipeline, you can also join our discord server to get the weekly updates. Link is in the description.
great content
Thank you so much 😊
I am get error in pm2 list ,pls help me out sir
Hey Pankaj, Please make sure to edit the config file and place that in the same folder as your code. also share the error message from pm2 logs command
@@TechTutorialswithPiyush for me also same and my error is /root/app-tier/TransactionService.js
0|index | - /root/app-tier/index.js
0|index | at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
0|index | at Module.Hook._require.Module.require (/root/.nvm/versions/node/v16.20.1/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:81:25)
0|index | at require (node:internal/modules/cjs/helpers:108:18)
0|index | at Object. (/root/app-tier/TransactionService.js:1:17)
0|index | at Module._compile (node:internal/modules/cjs/loader:1198:14)
0|index | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
0|index | at Module.load (node:internal/modules/cjs/loader:1076:32)
0|index | at Function.Module._load (node:internal/modules/cjs/loader:911:12)
0|index | at Module.require (node:internal/modules/cjs/loader:1100:19)
0|index | at Module.Hook._require.Module.require (/root/.nvm/versions/node/v16.20.1/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39) {
0|index | code: 'MODULE_NOT_FOUND',
0|index | requireStack: [ '/root/app-tier/TransactionService.js', '/root/app-tier/index.js' ]
@@TechTutorialswithPiyush please solve this error
Thanks
Welcome
Hi piyush can you make a video of route 53 using dns
Hello Buddy, I have used DNS in project 1 of this series, feel free to check it out.
Please, all the commands you were entering, you did not say what it would do. Am confused. It was too fast, too
I never said, this video was for beginners. Actually this is a part of 10weeksofcloudops challenge and this is the solution of week2 challenge. Focus was more on completing the task rather than the concepts. If you check the github repo, you will find the prerequisites, resources and other related links
@@TechTutorialswithPiyush Thank you, Piyush. Am sorry if I sounded rude, I really don't mean to. Please don't be offended.
Am not a beginner, I have my AWS Solutions Architect Associate and Cloud Practioner.
I was following so closely till I got to a part that was like a dead end. I was able to pull through after much effort.
Am grateful for all the resources you are sharing.
Thanks once again and please don't be offended.
hey , not a problem, let me know if you still need any clarification of anything you didn't understand
@@TechTutorialswithPiyush Thank you
itna sab kerne ka kitna cost ayega
If you create the resource and destroy it as soon as you are done only a few resources will be charged such as ELB, NAT and RDS. Cost you can check from AWS pricing calculator, it will be a good learning exercise for you.
@@TechTutorialswithPiyush yeah ok then i aware of NAT price but i am just worried about RDS .
Not working properly, I followed the exact tutorial
There could be some setup issues. Can you join our discord community and share the details, where exactly are you stuck, error messages, pm2 logs etc. we will help you.
@@TechTutorialswithPiyush Every thing is fine but at the end only, the DNS of the load balancer getting 502 Bad Gateway error
@@TechTutorialswithPiyush Also please share your community link
@@montypython378 it's there in the video description
@@montypython378Hey bro Did got, your issue is resolved?
kindly time stamp
Will do that
@@TechTutorialswithPiyush thank you
Sir RDS is costing 240 doller can we use any free tier database??
Hello Ankit, it shouldnt cost you that, you could have used the dev RDS instance with one replica. However, if you want, you can install mysql on EC2 server as master and read replica and implement the data replication across the two servers, that's even better in terms of learning. Good luck
Hi! Getting an error "fatal error: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied" when trying to give this command: cd ~/
aws s3 cp s3://BUCKET_NAME/app-tier/ app-tier --recursive . Pls help.
Hello Saumya, Looks like your IAM user doesnt have access to download the objects from this bucket. Make sure your S3 role attached to the EC2 instance so that it can authenticate on your behalf.
@@TechTutorialswithPiyush yes it worked fine after your suggestion. Thank you!
@@user-qt5ee6it5d Awesome! 😊
@@TechTutorialswithPiyush Hi Sir, in my knowledge i had correctly configured all components of the architecture but still at the end, i am getting 502 Bad Gateway error while trying to connect to external facing loadbalancer and i also cannot connect to public IP of the web tier instance. Is there a specific issue causing this? Pls help.
@@user-qt5ee6it5d check and verify the security group rules. Feel free to join the discord channel and someone will be able to help you troubleshoot the issue. link is in the description
Hi @Piyush, I am having an error can you please help me, I am at the middle of this project. I have done ""pm2 start index.js"" and status is "Online" but when I did ""pm2 list"" it is showing "errored" in status..
What does it mean...??
Hello, This usually happens when there is an issue with your dbconfig , please check the same and you can run pm2 logs to check the reason for failure.
I'm facing the similar issue . Have you resolved it?
have you got it resolved bro. any idea?
@@user-in4iz7yn7k join the discord server and someone will help you
@@srinathsj17 join the discord server and someone will help