Learn how to use Terraform variables
Вставка
- Опубліковано 2 гру 2024
- #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-t...
LinkedIn: bit.ly/cobus-l...
Instagram: bit.ly/cobus-i...
Facebook: bit.ly/cobus-f...
BEST VARIABLES VIDEO BY FAR
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
Very beautiful and good video. Keep it up more videos
Thanks, please continue the series
Очень хорошо показал, все четко и по делу, спасибо.
Thank you sir. Excellent video
Oh, GREAT video. Thanks a ton.
It was my first time watching your video. That's so easy to learn with you!
Great video. Best explanation on TF variables ❤
Great Video! Really helpful! Thank you.
Very clear and straight to the point
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.
I am just starting with terraform and this video gave me exactly what I was looking for. Thanks a lot! 👍🏻
Great video, thanks.
Incredible video, thanks for the thorough explanation.
Great video! Definitely needs more exposure and views. Please keep doing what you're doing. Thank you!
Thanks brother
You explain very well
Good job 👏
Thanks, man. Loved the content.
Thank you Cobus, Well Done :)
Very easy to understand and clear explanation....
great video
nice, easy to understand and straight to the point. Thank you Cobus
This is one of the best videos on the subject of variables and terraform. Thank you so much and well done!
Hey man, thank you! Your job are helping a lot of people!
Top notch. Really clear and effective descriptions. Thank you.
exactly what I was looking for
Excellent!, thanks
Awesome video mate, very well explained
Subb'd - love your style Cobus!
Great tutorial, subscribed :)!
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. 🙂
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!
Thank you!
But how about *.auto.tfvars?
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
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?
I`m also getting the same error