Project 3 - Deploy A 2-tier Application On AWS Using Terraform | Custom Modules in Terraform
ฝัง
- เผยแพร่เมื่อ 3 ส.ค. 2023
- Deploy A 2-tier Application On AWS Using Terraform - Custom Modules in Terraform.
Welcome to the 3rd video in the series #10weeksofcloudops. In this challenge, we need to deploy a 2-tier architecture on AWS using Terraform custom modules which should be highly available and scalable. To achieve that, we will use the following list of services of AWS.
📃 list of services
Amazon Certificate Manager (SSL)
Amazon Route 53 (DNS service)
Amazon CloudFront(CND)
Amazon EC2 (Server)
Amazon Auto Scaling group (Scale on demand)
Amazon VPC (Virtual private cloud: Private Network)
Amazon RDS (Relational database services: Database)
Amazon DynamoDB (State-locking for tfstate file)
Amazon S3 (storing backend and achieving versioning)
Amazon CloudWatch (Alarm when CPU utilization increases or decreases)
📌By the end of this video, you will learn -:
- How does Terraform work
- What is the remote backend in Terraform
- What are custom modules in Terraform, and how do create them
- What are the variables in Terraform
- Input Variables v/s output variables
- State file locking in Terraform
- Terraform best practices
- Provision a 2-tier architecture on AWS using Terraform custom modules
GitHub repo: github.com/piyushsachdeva/10W...
IP calculation in the CIDR range: • Ipv4 Addressing, CIDR ...
AWS Networking: • AWS Networking - AWS V...
Blog by Ankit Jodhani: ankitjodhani.hashnode.dev/imp...
Blog by Mahesh Upreti:mupreti.hashnode.dev/keeping-...
𝗖𝗢𝗠𝗣𝗟𝗘𝗧𝗘 𝗧𝗨𝗧𝗢𝗥𝗜𝗔𝗟 𝗦𝗘𝗥𝗜𝗘𝗦 👌 It’s 🅵🆁🅴🅴 ⛳
#Azure900WithPiyush
• AZ900WithPiyush - Azur...
Namaste Google Cloud | GCP Tutorial for beginners, a complete playlist for Associate Cloud Engineer Certification Exam:
• Namaste Google Cloud, ...
DevOps Tutorial for Beginners
• DevOps Tutorial for be...
AWS tutorial for beginners
• AWS (Amazon Web Servic...
Azure Data fundamentals DP 900 full course
• Microsoft Azure Data F...
Jenkins Tutorial for Beginners
• Jenkins Tutorial For B...
DevOps and Cloud Podcasts:
• DevOps and Cloud Podcasts
Subscribe to our channel to get notified about the latest videos.
🔥 / techtutorialswithpiyush
Connect with me 👋
🌎LINKEDIN: ►
/ piyush-sachdeva
🐦TWITTER: ►
/ techie_piyush
Join our learning communities 👋
/ discord
References 📚:
registry.terraform.io/provide...
Deploy A 2-tier Application On AWS Using Terraform
deploy a two tier application on aws using terraform
deploy on aws using terraform
realtime aws projects
aws projects using Terraform
aws terraform tutorial
terraform project
terraform project aws
devops real time projects
terraform custom module
aws terraform tutorial for beginners
what is devops
what is terraform
what is aws
3-tier architecture
infrastructure provisioning using terraform
#devops #techtutorialswithpiyush - วิทยาศาสตร์และเทคโนโลยี
Thank you! This project-based playlist is truly beneficial and rare to find, especially for free. I really appreciate your service to the AWS and DevOps community. Please complete this playlist as early as possible. This playlist deserves 100k subscribers; I think it hasn't reached many people.
Thank you so much Nasir for your kind words! I truly appreciate your feedback :) Yes, I will be completing it soon. Stay tuned for the next project coming up soon.
Sir,Thanks for the project-based videos on AWS cloud! They provide a real-time feel, and I'm eagerly waiting for the next project. Please upload it as soon as possible.
Thank you for your feedback! I'm glad to hear my videos are helpful. The next project will be uploaded this week, so stay tuned!
Great explanation. Thank you
You're welcome :)
Thank you so much for your help
You're most welcome 🙂
On demand Industry requirement training ..!! Thank you Piyush bhaiya, much appreciated 🤟
Thank you so much for the amazing feedback , I am glad that you found it helpful :)
Nice session
Thank you Atif!
thats amazing
Thank you brother 🙂
Nice Sessions
Thank you Laxman
Sir, please include diagram explanations like in Project 1 before starting hands-on. It helps grasp the concepts easily and quickly. Include this in all your upcoming projects. Thank you
I added a diagram explanation to this video, but I will spend more time explaining it in the future. Thank you for your feedback, I appreciate it.
Good Video man , thanks for keeping it short and precise. can you provide some info on how Ankit created that diagram ?
Thank you for the feedback! He used Microsoft Powerpoint to create the animated diagrams.
@@TechTutorialswithPiyush I had a cloud challenge to perform at work, and I must say I copied most of the stuff you taught , it was really helpful.
Have you don’t anything with compliance software like Chekhov ?
Great Piyush, Can you please creat a project in Azure as well
Thank you brother for the feedback, I already have a similar project in Azure, here's the link
th-cam.com/video/I-MbnfNcikk/w-d-xo.html
Great, Thanks a lot. Looking forwad for many such projects
@@Jalal921 definitely
where did you declare keys for your back end to connect with the provider,
I didn't have to, the user I used to authenticate with Azure had a storage account object viewer role so access keys not required
Hello Piyush bhai, thank you very much for this video. Just a question - can we not use Terraform public modules for vpc, ec2, rds etc for this 2-tier architecture? Why did we have to create custom modules? Thanks again for your selfless service!
Thank you for the great feedback buddy! To answer your question: We can definitely use public module however, it is not a production best practice. Public module are maintained by the owner or a separate organization and any changes in that could directly impact your production environment hence, organization like to retain total control of the module. I hope this answered your question.
Hello, thanks for this projects.
I think the solution in github is missing the Jumpbox module for the connection
Hello, Thanks for pointing out, yes the jumbox module is missing in the Github and the video
Hi sir, do we normally keep multiple Nat gateways? Especially for cases like in EKS cluster?
I created my cluster with eksctl and it created only one NAT. Is there an issue with this?
NAT Gateways doesnt span Availability Zones, if you deploy your resourced in multiple AZs , then you need to setup NAT for each Zone seperately. Hope this clears your confusion.
Hello,
Whenever I run “tf init”, I keep getting an error message saying “Failed to read module directory” and “Module directory does not exist or cannot be read”. Any idea on how to fix this? Thanks!
You need to run it from the directory where your root module exists. It looks for .tf files in the directory
@@TechTutorialswithPiyush So, are you saying I should save my .tf module files in the root folder and then try running it again?
Could you pls provide more details on certificate manager
Hello Yogi, I have created the certificate in video #1 of this series, feel free to check it out.
@@TechTutorialswithPiyush Please for the link of video #1 I will appreciate thank you very much
@@tubuobaggio Here
th-cam.com/video/UVvc_RtOoWg/w-d-xo.html
Hello sir piyush, can i put this project on my resume? Thank you!
If you have implemented it end to end by yourself and understood everything, then yes, feel free to add in your resume.
increase your volume
Can you please check out any latest video and let me know if you still feel the volume is low?
sir in terraform what is taint? can u please teach about this
Hello,
We taint the resources created by Terraform to mark it is a broken and instruct terraform that it should be recreated/replaced during the next terraform apply but now the command has been deprecated and replaced by -replace
@@TechTutorialswithPiyush thank you so much sir.
@@aravnandan1617 you're welcome buddy 😊
Hi piyush
I can't able to install mysql. There asking password I gave password but I can't able to install there showing some error. How can I rectify that one and which password I need to give. Could you please slove my problem.
Hello Shiva, Can you please provide more details? How are you installing mysql? What error you are getting? What commands are you using? Can you join our discord community and share all these details in the help-10weeksofcloudops channel? We will help you.
is it free tier?
Not every service will be covered as part of free tier. e.g Load balancers, NAT Gateways, RDS etc are not covered in free tier.
can I do that with aws free account ?
I believe most of the services can we covered within free tier. make sure you understand what is covered and what is not. For example, EC2 Micro instances are covered and not all EC2 instances. You will find the details in the documentation. You can go to below page and checkout the details for each services used in the demo:
aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all
@@TechTutorialswithPiyush ok, Thank you very much!
@@user-rs7un1hp6v welcome