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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 59

  • @NasirHussain-el6kn
    @NasirHussain-el6kn 10 หลายเดือนก่อน +2

    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.

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  10 หลายเดือนก่อน

      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.

  • @awssoorinje747
    @awssoorinje747 10 หลายเดือนก่อน +1

    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.

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  10 หลายเดือนก่อน

      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!

  • @pravinkumar8491
    @pravinkumar8491 4 หลายเดือนก่อน +1

    Great explanation. Thank you

  • @yogibisai647
    @yogibisai647 11 หลายเดือนก่อน +1

    Thank you so much for your help

  • @ashutoshbambal614
    @ashutoshbambal614 9 หลายเดือนก่อน +1

    On demand Industry requirement training ..!! Thank you Piyush bhaiya, much appreciated 🤟

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 หลายเดือนก่อน

      Thank you so much for the amazing feedback , I am glad that you found it helpful :)

  • @atifshahzad9537
    @atifshahzad9537 11 หลายเดือนก่อน +1

    Nice session

  • @VaibhavShewale
    @VaibhavShewale 4 หลายเดือนก่อน +1

    thats amazing

  • @laxmanpatil4753
    @laxmanpatil4753 11 หลายเดือนก่อน +1

    Nice Sessions

  • @awssoorinje747
    @awssoorinje747 10 หลายเดือนก่อน +1

    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

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  10 หลายเดือนก่อน

      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.

  • @nightfly3358
    @nightfly3358 9 วันที่ผ่านมา +1

    Good Video man , thanks for keeping it short and precise. can you provide some info on how Ankit created that diagram ?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  8 วันที่ผ่านมา

      Thank you for the feedback! He used Microsoft Powerpoint to create the animated diagrams.

    • @nightfly3358
      @nightfly3358 8 วันที่ผ่านมา

      @@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 ?

  • @Jalal921
    @Jalal921 9 หลายเดือนก่อน +1

    Great Piyush, Can you please creat a project in Azure as well

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 หลายเดือนก่อน

      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

    • @Jalal921
      @Jalal921 9 หลายเดือนก่อน +1

      Great, Thanks a lot. Looking forwad for many such projects

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 หลายเดือนก่อน

      @@Jalal921 definitely

  • @ashutoshpangavhane7024
    @ashutoshpangavhane7024 2 หลายเดือนก่อน +1

    where did you declare keys for your back end to connect with the provider,

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  2 หลายเดือนก่อน

      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

  • @ibmuser13
    @ibmuser13 4 หลายเดือนก่อน +1

    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!

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  4 หลายเดือนก่อน

      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.

  • @zamo2049
    @zamo2049 9 หลายเดือนก่อน +1

    Hello, thanks for this projects.
    I think the solution in github is missing the Jumpbox module for the connection

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  8 หลายเดือนก่อน +1

      Hello, Thanks for pointing out, yes the jumbox module is missing in the Github and the video

  • @MdAshraf007
    @MdAshraf007 6 หลายเดือนก่อน +1

    Hi sir, do we normally keep multiple Nat gateways? Especially for cases like in EKS cluster?

    • @MdAshraf007
      @MdAshraf007 6 หลายเดือนก่อน +1

      I created my cluster with eksctl and it created only one NAT. Is there an issue with this?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  6 หลายเดือนก่อน +1

      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.

  • @bezanpithawalla234
    @bezanpithawalla234 8 หลายเดือนก่อน +1

    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!

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  8 หลายเดือนก่อน

      You need to run it from the directory where your root module exists. It looks for .tf files in the directory

    • @bezanpithawalla234
      @bezanpithawalla234 8 หลายเดือนก่อน

      @@TechTutorialswithPiyush So, are you saying I should save my .tf module files in the root folder and then try running it again?

  • @yogibisai647
    @yogibisai647 11 หลายเดือนก่อน +1

    Could you pls provide more details on certificate manager

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  11 หลายเดือนก่อน

      Hello Yogi, I have created the certificate in video #1 of this series, feel free to check it out.

    • @tubuobaggio
      @tubuobaggio 9 หลายเดือนก่อน +1

      @@TechTutorialswithPiyush Please for the link of video #1 I will appreciate thank you very much

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  9 หลายเดือนก่อน

      @@tubuobaggio Here
      th-cam.com/video/UVvc_RtOoWg/w-d-xo.html

  • @dyunjiiee
    @dyunjiiee 4 หลายเดือนก่อน +1

    Hello sir piyush, can i put this project on my resume? Thank you!

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  4 หลายเดือนก่อน

      If you have implemented it end to end by yourself and understood everything, then yes, feel free to add in your resume.

  • @nirajbhanushali7693
    @nirajbhanushali7693 23 วันที่ผ่านมา +1

    increase your volume

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  22 วันที่ผ่านมา

      Can you please check out any latest video and let me know if you still feel the volume is low?

  • @aravnandan1617
    @aravnandan1617 9 หลายเดือนก่อน +1

    sir in terraform what is taint? can u please teach about this

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  8 หลายเดือนก่อน +1

      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

    • @aravnandan1617
      @aravnandan1617 8 หลายเดือนก่อน +1

      @@TechTutorialswithPiyush thank you so much sir.

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  8 หลายเดือนก่อน

      @@aravnandan1617 you're welcome buddy 😊

  • @shiva2804
    @shiva2804 2 หลายเดือนก่อน +1

    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.

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  2 หลายเดือนก่อน

      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.

  • @madhulikapaluri8020
    @madhulikapaluri8020 3 หลายเดือนก่อน +1

    is it free tier?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  3 หลายเดือนก่อน

      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.

  • @user-rs7un1hp6v
    @user-rs7un1hp6v 4 หลายเดือนก่อน +1

    can I do that with aws free account ?

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  4 หลายเดือนก่อน

      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

    • @user-rs7un1hp6v
      @user-rs7un1hp6v 4 หลายเดือนก่อน +1

      ​@@TechTutorialswithPiyush ok, Thank you very much!

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush  4 หลายเดือนก่อน +1

      @@user-rs7un1hp6v welcome