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

КОМЕНТАРІ • 35

  • @marianodangelo8220
    @marianodangelo8220 7 місяців тому +1

    BEST VARIABLES VIDEO BY FAR

  • @Hufsa
    @Hufsa Рік тому

    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

  • @donskye5750
    @donskye5750 4 роки тому

    Very beautiful and good video. Keep it up more videos

  • @MohamedElsayed-tc5yg
    @MohamedElsayed-tc5yg Рік тому

    Thanks, please continue the series

  • @Dinasdas
    @Dinasdas Рік тому

    Очень хорошо показал, все четко и по делу, спасибо.

  • @devips5102
    @devips5102 2 роки тому

    Thank you sir. Excellent video

  • @EricOnYouTube
    @EricOnYouTube 2 роки тому

    Oh, GREAT video. Thanks a ton.

  • @mirsaidalizade4639
    @mirsaidalizade4639 Рік тому

    It was my first time watching your video. That's so easy to learn with you!

  • @jigneshpatel5469
    @jigneshpatel5469 5 місяців тому

    Great video. Best explanation on TF variables ❤

  • @BiswajitKeshariMohanty
    @BiswajitKeshariMohanty Рік тому

    Great Video! Really helpful! Thank you.

  • @joeb.1163
    @joeb.1163 3 роки тому

    Very clear and straight to the point

  • @NVME57
    @NVME57 4 роки тому +1

    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.

  • @omega-the-loner
    @omega-the-loner Рік тому

    I am just starting with terraform and this video gave me exactly what I was looking for. Thanks a lot! 👍🏻

  • @moinkhan
    @moinkhan Рік тому

    Great video, thanks.

  • @clarkragay13
    @clarkragay13 2 роки тому

    Incredible video, thanks for the thorough explanation.

  • @Constantine769
    @Constantine769 3 роки тому +1

    Great video! Definitely needs more exposure and views. Please keep doing what you're doing. Thank you!

  • @shahresokhta
    @shahresokhta 2 роки тому

    Thanks brother
    You explain very well
    Good job 👏

  • @muhammadmejanulhaque3305
    @muhammadmejanulhaque3305 2 роки тому

    Thanks, man. Loved the content.

  • @techwithraja
    @techwithraja 2 роки тому

    Thank you Cobus, Well Done :)
    Very easy to understand and clear explanation....

  • @eddieteah3102
    @eddieteah3102 Рік тому

    great video

  • @nforlife
    @nforlife 3 роки тому

    nice, easy to understand and straight to the point. Thank you Cobus

  • @theberserkalchemist8598
    @theberserkalchemist8598 3 роки тому

    This is one of the best videos on the subject of variables and terraform. Thank you so much and well done!

  • @guibitencourts
    @guibitencourts 2 роки тому

    Hey man, thank you! Your job are helping a lot of people!

  • @_indrid_cold_
    @_indrid_cold_ 3 роки тому

    Top notch. Really clear and effective descriptions. Thank you.

  • @srgd108
    @srgd108 7 місяців тому

    exactly what I was looking for

  • @theconfusedchannel6365
    @theconfusedchannel6365 3 роки тому

    Excellent!, thanks

  • @EnriqueSalceda
    @EnriqueSalceda 2 роки тому

    Awesome video mate, very well explained

  • @i.r.baboon
    @i.r.baboon 3 роки тому

    Subb'd - love your style Cobus!

  • @bschaatsbergen
    @bschaatsbergen 3 роки тому

    Great tutorial, subscribed :)!

  • @kishanbsh
    @kishanbsh 2 роки тому +1

    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. 🙂

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

  • @Heavy1021
    @Heavy1021 Рік тому

    Thank you!
    But how about *.auto.tfvars?

  • @senglobe
    @senglobe 2 роки тому

    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?