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

preview_player
Показать описание
Terraform Input Variable (string, number, boo, list, map...) | How to use Terraform Input Variable

▬▬▬▬▬▬ ⭐️ Instruction's Guides ⭐️ ▬▬▬▬▬▬

But before you start working with Terraform you must understand different types of variables provided by the terraform -
1. string - It will hold string values
2. number - It will hold number values
3. bool - It will hold boolean value .i.e. true, false
4. list - It is used for the collection of values. Collection can be of type string, number
5. map - When you need to create key-value pair then need to use map variable type

In this session, we are going to create a sample terraform for each variable type.

▬▬▬▬▬▬ ⭐️ 🕘Timestamps ⭐️ ▬▬▬▬▬▬
0:00 - Intro to Terraform Input Variables
02:02 - What is terraform Input Variables?
02:33 - Terraform Input Variables example
05:18 - Terraform Input variable syntax
06:36 - string variable
07:34 - number variable
11:16 - boolean variable
12:45 - list variable
15:40 - map variable

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
Рекомендации по теме
Комментарии
Автор

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!

forexmeter
Автор

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

leandrojpg
Автор

bohat shukariya Rahul sahab for explaining in easy terms of language

saadjahakayani
Автор

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

hirenbhatt
Автор

Brilliant job Sir. keep up doing the good work ❣

John
Автор

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

nagababunalluri
Автор

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

VNnimbs
Автор

outstanding explanation for every step in video, many thanks .

prasadrao
Автор

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

sudheerpetluri
Автор

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

talhamalik
Автор

you are hero sir thanks a lot sir

your contents are supur

allwayspositive
Автор

thank you for your valuable content..!!❤

happylearningtricks
Автор

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 !!

nilavasen
Автор

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

sundeepgarg
Автор

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

KrishnaRac
Автор

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.

abbaskp
Автор

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

kumarv
Автор

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

sumanjaiswal
Автор

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

DanielWeikert
Автор

Hi Rahul, i tried the string using GCp but i get lot of error
provider "google" {
credentials = file("gcp-account.json")
project =
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
}
}
}

Hitesh_