Terraform Locals | How to use Terraform Locals? - Part 4

  Рет қаралды 24,055

Rahul Wagh

Rahul Wagh

Күн бұрын

Terraform Locals | How to use Terraform Locals?
▬▬▬▬▬▬ ⭐️ Instruction's Guides ⭐️ ▬▬▬▬▬▬
1. How to use Terraform locals? - jhooq.com/how-to-use-terrafor...
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
In this session we are going to look on terrafrom locals and how to use it inside your terraform files.
Terraform local can really help you to -
1. Improve your terraform file configuration
2. Terraform local helps you to centralized local varible configuration, so that you can change and update the values at one places.
3. It can be really useful to simplify the complex terrafrom file
▬▬▬▬▬▬ ⭐️ 🕘Timestamps ⭐️ ▬▬▬▬▬▬
0:00 - What is terrafrom Locals
02:22 - How to improve terraform file by using Terraform locals?
03:34 - How to implement terraform locals?
05:14 - Terraform locals demo on AWS
For more details on Terraform here is the official guide - www.terraform.io/docs/languag...
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

Пікірлер: 35
@vijaymestry4236
@vijaymestry4236 21 сағат бұрын
Great videos.Continue sir
@ssar-np7uo
@ssar-np7uo Жыл бұрын
I was looking for tf in Realtime use. And i got it !!.Great videos.Continue your work.
@forexmeter3900
@forexmeter3900 Жыл бұрын
Very well explained!
@LukasKotatko
@LukasKotatko Жыл бұрын
this channel is very undervaluated - plenty of pretty good content here
@RahulWagh
@RahulWagh Жыл бұрын
Thanks for the feedback
@massiccreation2981
@massiccreation2981 3 жыл бұрын
Great Info!!
@jitenderpal3588
@jitenderpal3588 10 ай бұрын
very well explained Rahul bhai..I have seen many videos earlier as well on Terraform but I find your videos easy to understand. Thanks for putting hard work
@RahulWagh
@RahulWagh 10 ай бұрын
So nice of you
@ChristopherKMEtou
@ChristopherKMEtou Жыл бұрын
Are there any rule on excessive use of local variables? Due to the face that variables don' t allow other variables as value, can I use locals to abstract variables and their pass those locals as input of variable in modules?
@happylearningtricks
@happylearningtricks Жыл бұрын
thanks Rahul for your valuable content.
@RahulWagh
@RahulWagh Жыл бұрын
You are welcome
@aruntaprial3704
@aruntaprial3704 Жыл бұрын
Thanks for the quality content having variables or locals is good in case we want to change only a single value what in case there is a requirement to change 2 values in the tag example stage-application-projectname i dont want to hardcode stage and projectname, just want to set it as per requirement using varibles or locals or anything you suggest it should be something like environment-application-projectname where i can pass the values for environment like stage or dev or prod and any projectname for the projectname .. can you please provide the syntax for the same or guide a bit
@GautamThakur
@GautamThakur 3 жыл бұрын
Thanks a lot
@udaykiran-je5ps
@udaykiran-je5ps 2 жыл бұрын
What is the difference between normal var declared variables and this locals variable?
@cirishafranky
@cirishafranky 2 жыл бұрын
I think difference between var n locals is that vars can be assigned using env vars Or tfvars file etc. But locals are defined in the script itself.. Cannot accept assignment from outside
@sivarasana3641
@sivarasana3641 Жыл бұрын
Excellent explanation sir
@RahulWagh
@RahulWagh Жыл бұрын
Thanks and welcome
@sathyar7078
@sathyar7078 2 жыл бұрын
I like all your videos and this is very good . I am mainly working on Azure and your videos really helps me in understanding core concepts . And I have one doubt , can we import multiple resources at a single time ?
@RahulWagh
@RahulWagh 2 жыл бұрын
What kind of resources you wanna import in terraform?
@jeeldasvani5015
@jeeldasvani5015 Жыл бұрын
can we set value of locals by command line ??
@rampanwar1316
@rampanwar1316 2 жыл бұрын
good explain
@RahulWagh
@RahulWagh 2 жыл бұрын
Thanks for liking
@ravitejamerugu3587
@ravitejamerugu3587 3 жыл бұрын
the same can be achieved with variable block inside main.tf or variables.tf file. then what is the difference this local variables make? please explain.
@RahulWagh
@RahulWagh 3 жыл бұрын
local variables are useful when you have a multimodule terraform project where you are have already defined some variable inside your variable.tf but you do not want to use same variable in your other module then in that case you are going to need local variables so that their scope is just limited to that particular module
@ravitejamerugu3587
@ravitejamerugu3587 3 жыл бұрын
@@RahulWagh gotcha, thanks alot ✅
@UmerSyed707
@UmerSyed707 3 жыл бұрын
@@RahulWagh nice video..but would have been nice if you mentioned this important point in the video
@RahulWagh
@RahulWagh 3 жыл бұрын
Yeah I agree sometimes there are so many thoughts while preparing these type of sessions so it just easy to forget
@saiteju8169
@saiteju8169 2 жыл бұрын
Great tutorial, do you have a complete udemy course of terraform with gcp and k8s???
@RahulWagh
@RahulWagh 2 жыл бұрын
Not yet but I am planning to launch the course soon
@GautamThakur
@GautamThakur 3 жыл бұрын
how much would you charge, if someone wants private lessons?
@RahulWagh
@RahulWagh 3 жыл бұрын
It would be really nice to talk it over email
@MuhammadWaqas-gr4gg
@MuhammadWaqas-gr4gg 2 жыл бұрын
I am confused between the variable and Local??? Whats the difference between them??? Secondly I am using Local.name without putting any $ sign in start....and its working....so is it mandatory to use $ sign or it can work either way???please help to explain the above 2 queries.....thanks
@cirishafranky
@cirishafranky 2 жыл бұрын
I think $ is used wen we need to concatenate some string like "mystring" to variable like "${local.staging_env}-mystring". And difference between var n locals is that vars can be assigned using env vars Or tfvars file. But locals are defined in the script itself.. Cannot accept assignment from outside..
@sajid4087
@sajid4087 Жыл бұрын
It's hardcoding confusing
@shashikrishna129
@shashikrishna129 3 жыл бұрын
Hi droped an email, can you check please..
Русалка
01:00
История одного вокалиста
Рет қаралды 7 МЛН
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 33 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 77 МЛН
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
What is Terraform null_resource and how to use it? - Part-21
19:10
How to create terraform modules? - Part 9
18:11
Rahul Wagh
Рет қаралды 56 М.
How to Manage Secrets in Terraform?
15:54
Anton Putra
Рет қаралды 24 М.
8 Terraform Best Practices that will improve your TF workflow immediately
8:57
Terraform Basics: Local Values
19:08
Ned in the Cloud
Рет қаралды 6 М.
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 4,2 МЛН
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,1 МЛН