Terraform Explained | Getting started with terraform on AWS and Google Cloud

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 มิ.ย. 2024
  • Getting Started with Terraform | Terraform Exaplained | What is Terraform | Terraform Tutorial | Terraform Tutorial for Beginner |Terraform Demo On AWS | Terraform Demo on Google Cloud Plateform
    Terraform is OpenSource infrastructure as a code software tool. With the help of Terraform you can provision infrastructure on cloud platform such AWS(aws.amazon.com/), Google Cloud(cloud.google.com/), Azure(azure.microsoft.com/en-us/), DigitalOcean(www.digitalocean.com/), OpenShift(www.openshift.com/) and many more...cloud provider
    Terraform follows the principles of states where you define your Terraform keeping in mind what would the "End State" of your infrastructure would be. You write the terraform configuration files using HashiCorp Configuration Language(HCL). The configuration file consists of resources that we want to provision on cloud platform as well as it also consists of blocks, arguments, and expressions.
    If you are a beginner and you want to learn Terraform then you should pay attention to the following features -
    1. You can write declarative configuration files for Terraform
    2. Terraform helps you to download the cloud dependencies using single command "terraform init"
    3. With terraform you can plan and predict changes which you want to apply to your infrastructure
    4. It also helps you with dependencies graphing to see the holistic picture of your infrastructure
    5. Also you can map real-world resources to your configuration.
    In this Terraform tutorial, we are going to see -
    1. What is Terraform?
    2. Terraform file structure as well as terraform file example
    3. What are Terraform command .i.e. - terraform init, terraform plan, terraform apply, terraform destroy
    4. How to install terraform
    5. We are also going to "Create a terraform file for the demo on Google Cloud platform to provision Virtual Machine"
    6. In the second demo we are going to "Create a terraform file for setting up an EC2 instance on AWS"
    7. We will also compare the terraform file of Google Cloud vs AWS
    ▬▬▬▬▬▬ ⭐️ 🕘Timestamps ⭐️ ▬▬▬▬▬▬
    0:00 - Intro to Terraform
    03:00 - Terraform commands
    03:39 - terraform init command
    05:18 - terraform plan command
    06:36 - terraform apply command
    07:34 - what is terraform file
    11:33 - Compare terraform file of Google Cloud platform and AWS
    13:56 - How to install terraform
    ▬▬▬▬▬▬ ⭐️ 🕘Timestamps for Demo⭐ ▬▬▬▬▬▬
    16:53 - Demo Setup virtual machine on Google Cloud Platform
    40:46 - Demo Setup EC2 Instance on AWS
    ▬▬▬▬▬▬ * Instruction's Guides * ▬▬▬▬▬▬
    1. How to install terraform - jhooq.com/install-terrafrom/
    2. Setup virtual machine on Google Cloud Platform - jhooq.com/how-to-setup-virtua...
    3. Setup EC2 Instance on AWS - jhooq.com/terraform-ec2-insta...
    For more details on Terraform here is the official guide - www.terraform.io/docs/
    To learn more on DevOps visit - jhooq.com
    Disclaimer/Policy: All the content/instructions are solely mine. The source is completely open-source.
    Video is copyrighted and can not be re-distributed on any platform.
    #devops #terraform #InfrastructureasCode #cloud
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @shubhankardas3353
    @shubhankardas3353 2 ปีที่แล้ว

    Perfect video all over the youtube. Thank you 😊

  • @pradyumnasav3145
    @pradyumnasav3145 ปีที่แล้ว

    Thanks a ton Rahul. This is an outstanding tutorial to understand Terraform. Thanks again.

  • @anjuyeddu5102
    @anjuyeddu5102 ปีที่แล้ว +1

    Thank you so much Rahul. Your demos and explanations are over the top!!!

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      Glad you like them!

  • @shyamsundardharmarapu6181
    @shyamsundardharmarapu6181 ปีที่แล้ว +2

    This video really really helped me to the core. Thank you very much for the session mate. Thanks a lot!

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      Glad it helped!

  • @happylearningtricks
    @happylearningtricks ปีที่แล้ว +2

    what an explanation along with clear documentation...!! - thanks a lot Rahul
    wonderful and great content in entire youtube

  • @hasan135
    @hasan135 2 ปีที่แล้ว

    Very nice and informative session. Thanks for sharing.

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Glad you enjoyed it!

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

    Simply Awesome ..

  • @AshokNikam-fs3ns
    @AshokNikam-fs3ns ปีที่แล้ว

    Hi Sir.. Thank you so much for the videos ...

  • @eswarteja7064
    @eswarteja7064 2 ปีที่แล้ว

    Thank you so much bro. Very very easy to understand for beginner's like me.

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Glad to hear that

  • @user-lk3qj9id7k
    @user-lk3qj9id7k 3 หลายเดือนก่อน

    Very informative session and clearly explain everything so nice great work.

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

      You are welcome

  • @PrashantSingh-ny4bl
    @PrashantSingh-ny4bl 5 หลายเดือนก่อน

    I passed terraform certification. Your videos were very helpful. Thank you very much.

    • @RahulWagh
      @RahulWagh  5 หลายเดือนก่อน

      Congratulations 🎊 glad to know!

  • @shakunthalapulugu755
    @shakunthalapulugu755 7 หลายเดือนก่อน

    Hi Rahul, thanks for your videos. Can we choose AMI as variable and can it vary depending on some condition?

  • @user-er8iy5dg8b
    @user-er8iy5dg8b 7 หลายเดือนก่อน

    Thank you Rahul for your many tutorials.

    • @RahulWagh
      @RahulWagh  7 หลายเดือนก่อน

      You are welcome! For more premium content consider being a member of tiny TH-cam channel program🙂

  • @rasheedyusuf4396
    @rasheedyusuf4396 ปีที่แล้ว

    Thanks. This excellent.

  • @nikhilnambiar6811
    @nikhilnambiar6811 2 ปีที่แล้ว +1

    Very informative session🙏

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Thanks and welcome

  • @sajid4087
    @sajid4087 ปีที่แล้ว

    So thankful the way of your explanation

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

    Hi Rahul, Thank you so much for the detailed way of explanation. I have one query that in general how the Real-time projects use terraform, will they include terraform in CICD Pipeline(Groovy script) or separately use terraform. Majority of the projects what process do they follow

  • @Ramankumar-zb5bo
    @Ramankumar-zb5bo ปีที่แล้ว +1

    Thank you sir for this video

  • @sreyaskundurpi1973
    @sreyaskundurpi1973 2 ปีที่แล้ว

    Hey Rahul. Thank you so much for the detailed explanation in the video. I have a question regarding the 'ami'. I am on windows machine and I am confused which ami to choose from the list on the console. Could you please help?

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      Hi shryas it does not matter which operating system you are running on your laptop or desktop. If you have installed terraform and you want to work on AWS then you can choose any free AMI (Ubuntu, cantos, amazon) because you are going to provision that AMI on aws cloud not on your local laptop or desktop.

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

    Excellent explaination Sir!!!

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

      Keep watching

  • @gk4976
    @gk4976 3 ปีที่แล้ว +1

    Rahul bro
    Can you please segregate all Kubernetes videos, actually I'm beginners in Kubernetes and your way of explaining is amazing, could you please make Kubernetes playlist videos step by steps

  • @amarnathnachimuthu83
    @amarnathnachimuthu83 ปีที่แล้ว

    Rahul, A good one to start with. Thank you

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว +1

      There is complete terraform playlist for you to follow

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

      Hi Vijay I see you have joined my youtube membership program, i am really glad you join it.
      Can you share your email id so that i can add you to my Discord group because I like to keep my member in my personal discord group so that i can reply their queries better.

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

    Informative

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

      You are welcome

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

    if i have not created azure resources using terraform and now team wants me to destroy all resources using terraform. what command i need to execute can i run terraform destroy command directly or i need to first run terraform init, terraform plan, terraform validate and finally terraform destroy? could you please guide me on this?

  • @sriramkotipalli3250
    @sriramkotipalli3250 3 ปีที่แล้ว

    Perfect..'m here for GCP terraform and after watching im much satisfied..tnks a ton sir...

    • @RahulWagh
      @RahulWagh  3 ปีที่แล้ว +1

      Glad to hear that

  • @sathishdarshanala6137
    @sathishdarshanala6137 ปีที่แล้ว

    hi rahul i was getting this error when i was provisioning vpc resource can you please help me with this?

  • @2mahender
    @2mahender ปีที่แล้ว

    so we cant use for loop for creating resources?

  • @sharathbabu7616
    @sharathbabu7616 ปีที่แล้ว

    Hi, Could you please help me to update the A records in Hosted zone of AWS using terraform

  • @chiranjeevirachapudi4412
    @chiranjeevirachapudi4412 2 ปีที่แล้ว

    nice video

  • @kirankumarkkk7661
    @kirankumarkkk7661 ปีที่แล้ว

    Ty.....

  • @naanireddy1
    @naanireddy1 6 หลายเดือนก่อน

    Hi, I have an elastic public IP available(I have 5 elastic IP's, in that I have used 4 elastic IP's and one elastic IP is free) in my aws account and I have an existing VPC and Subnet in my aws account. Now I want to create an ec2 instance in the existing subnet, while the ec2 instance is creating I want to attach that available elastic public Ip to the ec2 instance using terraform. Could you please explain how to do that.Thanks in advance.

  • @shivashankarpanyam9477
    @shivashankarpanyam9477 2 ปีที่แล้ว +2

    Bro, the session is good and can you make video on Jenkins ECS Fargate with Terraform coding

    • @RahulWagh
      @RahulWagh  2 ปีที่แล้ว

      surely i will add it to my list and in coming time you will see it

  • @nilavasen8631
    @nilavasen8631 ปีที่แล้ว +3

    Dear Rahul, how are you ? I have started learning TF from your channel. They are really awesome. Can you please suggest how is the job market for TF in India ? Does it worth learning today ? I have been doing the AWS SA training now. So, can I jump into TF after this ? What does I need to learn extra to get into TF jobs here ?
    Please suggest me !! Thank you 🙂

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว +3

      Only learning terraform is not sufficient enough to crack a job. You need to master at least one programming language java, python...
      Also try to learn more either AWS, GCloud
      Most important learn -Ansible and shell scripting

    • @nilavasen8631
      @nilavasen8631 ปีที่แล้ว +3

      @@RahulWagh ok thanks Rahul.. Let me pick up AWS, TF, ANSIBLE and one of Python / Shell scripting.. Hope that will help me here .

  • @ShaikhImran-tq8dk
    @ShaikhImran-tq8dk ปีที่แล้ว

    very nice

  • @sadikhussain1128
    @sadikhussain1128 ปีที่แล้ว

    😎👌

  • @Nils_Reel
    @Nils_Reel ปีที่แล้ว

    Hello Rahul, This tutorial is realy a nice tutorial to learn from basics to advance. But i am facing some issues as when i am creating EC2 instance from terraform the specific servers are not opening like am not able to connect those servers. Getting connection timed out while tring to connect through putty ir even from aws console not able to lunch those instances. But when manually creating from the AWS i am able to connect those instances. Any suggestions.

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

      make sure port 22 is open for connection

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

    do you have AZURE with TERRAFORM videos on your channel?

  • @calmworld9880
    @calmworld9880 ปีที่แล้ว

    Hi I have got a project to make dashboard using terraform and signalfx.
    Can you please help and guide with lectures kr courses

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

    Well!! What can I say.I been looking for this too!! I just took a peak view and I foud it is an excellent course from you too. I hope you are covering AWS too?

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

      Glad it was helpful!

  • @satyashrekanthvemuri2685
    @satyashrekanthvemuri2685 ปีที่แล้ว +1

    Thank you much. if you have azure terrafom. Please

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      I am planning to add more tutorials on Azure as well google cloud soon

  • @user-uz8nw4gh8m
    @user-uz8nw4gh8m 5 หลายเดือนก่อน

    Please explain for windows as well

  • @naanireddy1
    @naanireddy1 6 หลายเดือนก่อน

    I have an vpc and subnet and I have a public IP in aws. I want to create an instance in the existing VPC and existing subnet and ec2 instance have attach my public Ip. Could you please help me on that using terraform.

    • @RahulWagh
      @RahulWagh  6 หลายเดือนก่อน

      You can not attach public ip with existing ec2 instance. You need to create elastic ip and attach it to ec2

  • @nainabhartia8481
    @nainabhartia8481 ปีที่แล้ว

    Please make complete series on terraform.

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      There are a lot of similar sessions which I have already uploaded on my channel please refer to those terraform sessions and feel free to drop suggestions on missing topic

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

    Any prerequisite

  • @shivanshusharma20.07
    @shivanshusharma20.07 3 หลายเดือนก่อน

    sir can you cover more topics like taint etc in gcp?

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

      sure i will try my best

  • @nagababunalluri5059
    @nagababunalluri5059 ปีที่แล้ว

    which is useful video

  • @PradeepKumar-hb9rs
    @PradeepKumar-hb9rs ปีที่แล้ว

    Kindly upload in Hindi with Azure cloud platform

  • @roya2045
    @roya2045 3 ปีที่แล้ว +2

    Hi Bro first of all thanks for this tutorial on terraform great work. was looking from something basic to advance. I am not from a programming or DevOps background hence its bit tough for me.
    I don't want to divert you but if possible can you make a video on ansible as well I would like to understand the ansible playbook structure its bit confusing with spacings & hypens etc...

    • @RahulWagh
      @RahulWagh  3 ปีที่แล้ว

      Its always overwhelming when you start learning programming or devops.
      But thanks for the suggestions I will definitely add your request for Ansible into my todo list and will prepare something around that as I get more time in my calendar.
      //Rahul

    • @roya2045
      @roya2045 3 ปีที่แล้ว

      @@RahulWagh Sure Rahul looking forward to it & thanks for considering my request. Also looking forward to the 2nd video on this 👍

  • @sathishdarshanala6137
    @sathishdarshanala6137 ปีที่แล้ว

    Terraform-Fundamental-Blocks/03-02-Provider-Block/terraform-manifests (main)
    $ terraform init

    │ Error: Unsupported Terraform Core version

    │ on c1-versions.tf line 3, in terraform:
    │ 3: required_version = "~> 0.14.6"

    │ This configuration does not support Terraform version 1.1.2. To proceed,
    │ either choose another supported Terraform version or update this version
    │ constraint. Version constraints are normally set for good reason, so
    │ updating the constraint may lead to other errors or unexpected behavior.

    • @RahulWagh
      @RahulWagh  ปีที่แล้ว

      Check which version of terraform you are using