Terraform Input Variable (string, number, bool, list, map...) | How to use Terraform Input Variable

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ย. 2024

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

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

    What a good heart you have, I didn't know anything and the terraform documentation seems confusing to me you put things the easy way. Thank you, may God give you strength to continue helping us

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

      You're very welcome

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

    You explain very well, and you take your time unlike other instructors who rush through the presentation and it's hard to for along. Keep up the good work!

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

    bohat shukariya Rahul sahab for explaining in easy terms of language

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

      You are welcome

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

    GREAT UNDERSTANDING !! MOST RECOMMENDED! I HAVE SHORTLISTED THIS VIDEO OUT OF OTHERS SEEN AROUND MANY!!

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

    Hi Rahul, I am started learning terraform. It's very clear to understand.

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

      Glad to hear that, stay tuned there are more to come in upcoming weeks

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

    Brilliant job Sir. keep up doing the good work ❣

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

    This is too late to find this channel.very useful content shared thanks bro

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

      So nice of you

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

    this is really awesome video i have ever seen 😍

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

    Thanks a lot Rahul ..... Kudos to ur efforts....!!

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

    outstanding explanation for every step in video, many thanks .

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

      Glad you liked it!

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

    your videos are very good, before this terraform was confusing for me

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

      Glad I could help!

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

    Dear Rahul, really nice training material. Thanks a lot. Can you please develop and upload a new video on a real-life project kind of stuff on TF to AWS , so that we can get a clear e2e idea on how to actually apply TF in practical projects ? Thanks in advance !!

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

    Really thanks for making this video.

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

      So nice of you

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

    you are hero sir thanks a lot sir
    your contents are supur

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

      Most welcome

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

    Hi Rahul,
    It a very good explanation thanks for that.
    I have one query ,
    Currently you are spin up resource on single location, I want to spin up two locations each location have its owan key and values.
    like central-1 and other region
    is it possible how ?

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

    thank you for your valuable content..!!❤

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

      My pleasure 😊

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

    watching this TF series in 2024 and thanking to @rahul for your effort for us.

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

      You’re welcome

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

    Thank you so much sir..it's really great work. We are able to grasp each explanation..please keep doing, Terraform with gcp for creating dataset and assigning role to group to that created dataset using Terraform.

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

      Keep watching there is more to come

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

      @@RahulWagh I love this tutorial but I dont understand why you introduced count = length (var.user_names) and var.user_names[count.index]. That got me soooo confused. Could you please clarify? @Rahul Wagh

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

    Excellent sir

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

      Keep watching

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

    When you give count=2 how does it takes the ami-id for the instance for 2nd instance.

  • @SivaPrasad-ol1gh
    @SivaPrasad-ol1gh 5 หลายเดือนก่อน

    Thank You so much

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

      Welcome!

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

    nice content

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

    Super

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

    Your videos are awesome, it would be great if upload some content on terragrunt also.

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

      Will try to prepare something around terragrunt in upcoming weeks

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

    How to create different tag names (dev, test) for each ec2 instances with variables?

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

      There is tag element inside the terraform ec2 block which you can use it

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

    Great work thanks for sharing. Any reason you run init each time? 1 time should be enough or not?
    Do you have a tutorial using terraform for a s3-lambda-glue project? best regards and take care

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

      There is no need to run the terraform unit each time, it is absolutely optional. I am planning to prepare terraform lambda project soon

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

    Can you cover more topic of gcp int erraform like aws? like tfvars and ssh in gcp?

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

      It is on the list

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

      @@RahulWagh Sure sir what is playlist for gcp where all topics are covered?

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

    very nice

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

    Sir please arrange videos In a sequence and in the link as well

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

    The AMI specified in this, is it active AMI that you created in your AWS account? I believe its yes.

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

      I think it should be an active AMI on aws

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

    Ty.....sir

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

    There are some Running Servers in aws which have No IAM Roles. I can list those servers in a file, and from that file can we apply IAM roles by using Terraform.

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

      Yeah sure you can do that and add IAM roles

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

    Hi Rahul, i tried the string using GCp but i get lot of error
    provider "google" {
    credentials = file("gcp-account.json")
    project = "my-project-terraform-351112"
    region = "europe-west4"
    zone = "europe-west4-a"
    }
    resource "google_compute_instance" "default" {
    machine_type = var.machine_type"

    tags = {
    Name= "Terraform e2-micro"
    }
    boot_disk {
    initialize_params {
    image = "debian-cloud/debian-9"
    }
    }

    variable "machine_type" {
    description = "Machine type e2.micro"
    type = string
    default = "e2.micro"
    }
    network_interface {
    network = "default"
    access_config {
    // Ephemeral IP
    }
    }
    }

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

    Rahul please expain in GCP also.

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

      Its already there in the Terraform Part 1 - here is the timestamp for the Google Cloud Platform if you want to learn more - th-cam.com/video/jJX6S5JAGpI/w-d-xo.html

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

      @@RahulWagh yes i saw that video

  • @user-mb7qe6ro9m
    @user-mb7qe6ro9m 3 ปีที่แล้ว

    but u are still hard coding the instance type in variable section.

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

      Well yes the idea of this tutorial to show the variables types, so I just hardcoded the instance type into the variable section.
      I agree hardcoding is not recommended way but for this tutorial and to keep the things simple i have hard coded the instance type

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

    Why you use string .why not list

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

      It’s up to you what you wanna use string or list.

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

    Not good