Learn how to use Terraform variables

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

Cobus Bernard

Cobus Bernard

3 жыл бұрын

#terraform #devops #infrastructureascode
Learn how to extract hard-coded values into variables that you can set at runtime, as defaults or in a variables file. You can pass the variables file in at plan time, allowing you to have different sets depending on your environment.
If you have any questions about this video, or suggestions for content I should cover next, please leave a comment, or reach out to me on social media, details are down below.
Pull up a 🪑and bring a ☕/ 🍵/ 🍸/ 🍺, this channel focusses on Cloud related tech, mostly AWS, with practical, hands-on guides. New videos posted weekly (soon). If you have questions / suggestions for content, please leave a comment on any of the videos.
AWS Technical Developer Advocate, focussing on DevOps ❤️, containers 📦 and a bit of security🔐. Opinions are mine.
COME CHAT:
Twitter: bit.ly/cobus-twitter
LinkedIn: bit.ly/cobus-linkedin
Instagram: bit.ly/cobus-insta
Facebook: bit.ly/cobus-facebook

Пікірлер: 35
@jigneshpatel5469
@jigneshpatel5469 Ай бұрын
Great video. Best explanation on TF variables ❤
@marianodangelo8220
@marianodangelo8220 3 ай бұрын
BEST VARIABLES VIDEO BY FAR
@Dinasdas
@Dinasdas Жыл бұрын
Очень хорошо показал, все четко и по делу, спасибо.
@theberserkalchemist8598
@theberserkalchemist8598 3 жыл бұрын
This is one of the best videos on the subject of variables and terraform. Thank you so much and well done!
@NVME57
@NVME57 3 жыл бұрын
Thank you Cobus. Great content. Concise and thorough. I like how you show not only what to do , but also what not to do by showing the intermediate steps in the terminal with all the errors that occur. Thank you.
@nforlife
@nforlife 2 жыл бұрын
nice, easy to understand and straight to the point. Thank you Cobus
@guibitencourts
@guibitencourts 2 жыл бұрын
Hey man, thank you! Your job are helping a lot of people!
@joeb.1163
@joeb.1163 3 жыл бұрын
Very clear and straight to the point
@_indrid_cold_
@_indrid_cold_ 3 жыл бұрын
Top notch. Really clear and effective descriptions. Thank you.
@omega-the-loner
@omega-the-loner 11 ай бұрын
I am just starting with terraform and this video gave me exactly what I was looking for. Thanks a lot! 👍🏻
@Constantine769
@Constantine769 3 жыл бұрын
Great video! Definitely needs more exposure and views. Please keep doing what you're doing. Thank you!
@MohamedElsayed-tc5yg
@MohamedElsayed-tc5yg Жыл бұрын
Thanks, please continue the series
@srgd108
@srgd108 2 ай бұрын
exactly what I was looking for
@EricOnYouTube
@EricOnYouTube 2 жыл бұрын
Oh, GREAT video. Thanks a ton.
@Hufsa
@Hufsa 8 ай бұрын
I usually don't enjoy tutorial videos but this time I understood so I'm really happy :p honestly terraform documentation confused me and I was mad about it, thank you so much for such great explanation
@techwithraja
@techwithraja 2 жыл бұрын
Thank you Cobus, Well Done :) Very easy to understand and clear explanation....
@mirsaidalizade4639
@mirsaidalizade4639 Жыл бұрын
It was my first time watching your video. That's so easy to learn with you!
@theconfusedchannel6365
@theconfusedchannel6365 2 жыл бұрын
Excellent!, thanks
@BiswajitKeshariMohanty
@BiswajitKeshariMohanty Жыл бұрын
Great Video! Really helpful! Thank you.
@clarkragay13
@clarkragay13 2 жыл бұрын
Incredible video, thanks for the thorough explanation.
@moinkhan
@moinkhan 8 ай бұрын
Great video, thanks.
@devips5102
@devips5102 2 жыл бұрын
Thank you sir. Excellent video
@shahresokhta
@shahresokhta Жыл бұрын
Thanks brother You explain very well Good job 👏
@muhammadmejanulhaque3305
@muhammadmejanulhaque3305 Жыл бұрын
Thanks, man. Loved the content.
@donskye5750
@donskye5750 3 жыл бұрын
Very beautiful and good video. Keep it up more videos
@EnriqueSalceda
@EnriqueSalceda 2 жыл бұрын
Awesome video mate, very well explained
@eddieteah3102
@eddieteah3102 Жыл бұрын
great video
@bschaatsbergen
@bschaatsbergen 3 жыл бұрын
Great tutorial, subscribed :)!
@i.r.baboon
@i.r.baboon 3 жыл бұрын
Subb'd - love your style Cobus!
@josephcornejo7191
@josephcornejo7191 2 жыл бұрын
I love the video! I learned so much, I just have a question. So once you have made the tvars files for a couple environments, lets say dev and prod environments. If I wanted to a later date go and add another resource, would I always have to run the plan and apply commands with the varfile flag? would it recreate all the instances? Sorry I am new, thank you for your patience!
@kishanbsh
@kishanbsh Жыл бұрын
Does the state file also get affected when running for prod.tfvars vs dev.tfvars? I felt that could have been also covered in the video. 🙂
@Heavy1021
@Heavy1021 Жыл бұрын
Thank you! But how about *.auto.tfvars?
@senglobe
@senglobe Жыл бұрын
When I terraform apply with diff -var-file, the initially created resources (lets say prod.tfvars) are replaced with new var lets say (dev). It is not creating diff environment
@dwainDigital
@dwainDigital 3 жыл бұрын
Why do I get this error (sorry a newbee) " To specify a working directory for the plan, use the global -chdir flag" I have my tfvars file in a folder called env-vars/dev.tfvars. So when I run "Terraform plan -var-file=dev.tfvars" or "Terraform plan -var-file=env-vars\dev.tfvars" what am I doing wrong?
@chamodhhettiarachchi6244
@chamodhhettiarachchi6244 3 жыл бұрын
I`m also getting the same error
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 20 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 160 МЛН
Input Variables with Terraform and Azure
21:52
Travis Roberts
Рет қаралды 14 М.
Input Variables in Terraform | Terraform Tutorial | #7
25:43
Will Brock
Рет қаралды 46 М.
Day 4 : Terraform Variables and Outputs Tutorial
22:56
Cloud Champ
Рет қаралды 11 М.
Terraform Basics: Input Variables
33:54
Ned in the Cloud
Рет қаралды 6 М.
Terraform Basics: Local Values
19:08
Ned in the Cloud
Рет қаралды 6 М.
Getting Started with Terraform on AWS
19:30
Cobus Bernard
Рет қаралды 6 М.
Day 2: Master HCL syntax and Learn how to write Terraform Code
19:01
Terraform with Multiple State Files
26:14
Michael Crilly
Рет қаралды 20 М.
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 4,5 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 1,4 МЛН
ГОСЗАКУПОЧНЫЙ ПК за 10 тысяч рублей
36:28
Ремонтяш
Рет қаралды 528 М.