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

Sdílet
Vložit
  • čas přidán 2. 08. 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
  • Věda a technologie

Komentáře • 87

  • @shubhankardas3353
    @shubhankardas3353 Před 2 lety

    Perfect video all over the youtube. Thank you 😊

  • @pradyumnasav3145
    @pradyumnasav3145 Před rokem

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

  • @happylearningtricks
    @happylearningtricks Před rokem +2

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

  • @shyamsundardharmarapu6181

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

  • @AshokNikam-fs3ns
    @AshokNikam-fs3ns Před rokem

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

  • @anjuyeddu5102
    @anjuyeddu5102 Před rokem +1

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

  • @saanvisaha2494
    @saanvisaha2494 Před 2 měsíci

    Simply Awesome ..

  • @shubho5das
    @shubho5das Před 19 dny

    Very useful. Thank You!

  • @rasheedyusuf4396
    @rasheedyusuf4396 Před rokem

    Thanks. This excellent.

  • @hasan135
    @hasan135 Před 2 lety

    Very nice and informative session. Thanks for sharing.

  • @PrashantSingh-ny4bl
    @PrashantSingh-ny4bl Před 7 měsíci

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

    • @RahulWagh
      @RahulWagh  Před 7 měsíci

      Congratulations 🎊 glad to know!

  • @eswarteja7064
    @eswarteja7064 Před 2 lety

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

  • @krishnamahesh1342
    @krishnamahesh1342 Před měsícem

    Thanks @RahulWagh , Very informative seesion.

  • @kirankumarkkk7661
    @kirankumarkkk7661 Před rokem

    Ty.....

  • @sajid4087
    @sajid4087 Před rokem

    So thankful the way of your explanation

  • @user-lk3qj9id7k
    @user-lk3qj9id7k Před 5 měsíci

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

  • @gk4976
    @gk4976 Před 3 lety +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

  • @user-er8iy5dg8b
    @user-er8iy5dg8b Před 9 měsíci

    Thank you Rahul for your many tutorials.

    • @RahulWagh
      @RahulWagh  Před 9 měsíci

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

  • @nikhilnambiar6811
    @nikhilnambiar6811 Před 2 lety +1

    Very informative session🙏

  • @Ramankumar-zb5bo
    @Ramankumar-zb5bo Před rokem +1

    Thank you sir for this video

  • @shakunthalapulugu755
    @shakunthalapulugu755 Před 9 měsíci

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

  • @sadikhussain1128
    @sadikhussain1128 Před rokem

    😎👌

  • @MyDevOpslearning23
    @MyDevOpslearning23 Před 5 měsíci

    Excellent explaination Sir!!!

  • @amarnathnachimuthu83
    @amarnathnachimuthu83 Před 2 lety

    Rahul, A good one to start with. Thank you

    • @RahulWagh
      @RahulWagh  Před 2 lety +1

      There is complete terraform playlist for you to follow

    • @RahulWagh
      @RahulWagh  Před 10 měsíci

      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.

  • @sriramkotipalli3250
    @sriramkotipalli3250 Před 3 lety

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

  • @sreyaskundurpi1973
    @sreyaskundurpi1973 Před 2 lety

    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  Před 2 lety

      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.

  • @GoofyChaiLoverGirl
    @GoofyChaiLoverGirl Před 4 měsíci

    Informative

  • @nilavasen8631
    @nilavasen8631 Před rokem +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  Před rokem +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 Před rokem +3

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

  • @syedjohn6745
    @syedjohn6745 Před 5 měsíci

    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

  • @shivashankarpanyam9477
    @shivashankarpanyam9477 Před 2 lety +2

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

    • @RahulWagh
      @RahulWagh  Před 2 lety

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

  • @chiranjeevirachapudi4412

    nice video

  • @denzilpeiris492
    @denzilpeiris492 Před 6 měsíci

    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?

  • @ShaikhImran-tq8dk
    @ShaikhImran-tq8dk Před rokem

    very nice

  • @user-uz8nw4gh8m
    @user-uz8nw4gh8m Před 7 měsíci

    Please explain for windows as well

  • @nainabhartia8481
    @nainabhartia8481 Před rokem

    Please make complete series on terraform.

    • @RahulWagh
      @RahulWagh  Před rokem

      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

  • @2mahender
    @2mahender Před 2 lety

    so we cant use for loop for creating resources?

  • @sharathbabu7616
    @sharathbabu7616 Před rokem

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

  • @Nils_Reel
    @Nils_Reel Před rokem

    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.

  • @sathishdarshanala6137
    @sathishdarshanala6137 Před 2 lety

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

  • @satyashrekanthvemuri2685

    Thank you much. if you have azure terrafom. Please

    • @RahulWagh
      @RahulWagh  Před rokem

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

  • @nagababunalluri5059
    @nagababunalluri5059 Před rokem

    which is useful video

  • @akshaykadam8233
    @akshaykadam8233 Před 11 měsíci

    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?

  • @chetanareddy2034
    @chetanareddy2034 Před 11 měsíci

    do you have AZURE with TERRAFORM videos on your channel?

  • @naanireddy1
    @naanireddy1 Před 7 měsíci

    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.

  • @shivanshusharma20.07
    @shivanshusharma20.07 Před 5 měsíci

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

  • @calmworld9880
    @calmworld9880 Před rokem

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

  • @PradeepKumar-hb9rs
    @PradeepKumar-hb9rs Před rokem

    Kindly upload in Hindi with Azure cloud platform

  • @roya2045
    @roya2045 Před 3 lety +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  Před 3 lety

      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 Před 3 lety

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

  • @naanireddy1
    @naanireddy1 Před 8 měsíci

    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  Před 8 měsíci

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

  • @devopsjockey
    @devopsjockey Před 11 měsíci

    Any prerequisite

  • @sathishdarshanala6137
    @sathishdarshanala6137 Před 2 lety

    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  Před 2 lety

      Check which version of terraform you are using