What is infrastructure as code? // Terraform Tutorial

Sdílet
Vložit
  • čas přidán 6. 06. 2024
  • Let's talk about Infrastructure as code with Terraform. What is it? And why do we need that in IT? I also show you how to get easily started with Terraform and use it to deploy Docker Infrastructure. But I also show you a Cloud Deployment and how to use Terraform within your projects. #Terraform #Infrastructureascode #CloudComputing
    Automate Docker Deployments with Ansible: • Automate your Docker d...
    Teleport-*: goteleport.com/thedigitallife
    Follow me:
    TWITTER: / christianlempa
    INSTAGRAM: / christianlempa
    DISCORD: / discord
    GITHUB: github.com/christianlempa
    PATREON: / christianlempa
    MY EQUIPMENT: kit.co/christianlempa
    Timestamps:
    00:00 - Introduction
    01:10 - Why do we need Infrastructure as code?
    03:25 - Terraform vs Ansible
    06:50 - Install Terraform and prepare our projects
    09:58 - Simple example with Docker
    17:11 - Mistakes you should avoid
    19:32 - Cloud Deployment example
    ________________
    All links with "*" are affiliate links.

Komentáře • 43

  • @qoutwest
    @qoutwest Před 2 lety +7

    Great video. I have been using TF for a few months in a large environment and this was perfect!

  • @YugimanTeam
    @YugimanTeam Před 2 lety +6

    Terraform is SO AWESOME took a course not to long ago and its F***ing Brilliant!!! and so helpful. Especially if you use Modules!

  • @heyredux
    @heyredux Před 2 lety +1

    Very detailed explanation, thank you very much.
    I started using Terraform and Ansible two days ago to learn about Infrastructure as Code.
    Your video comes in very handy.

  • @cybersecurehacks
    @cybersecurehacks Před 2 lety +3

    This dude reads brain man. Awesome tutorial again.

  • @chrisumali9841
    @chrisumali9841 Před rokem

    thanks for the demo and info, have a great day

  • @180doman
    @180doman Před 2 lety +4

    I would only add that nowadays Cloudflare encourages to use api_token instead of api_key. Also in civo provider its good to use region - It took me a short moment to figure out why i dont see created server in civo dashboard - it was placed in NYC1 zone by default which i dont use:). A word of explanation of how terraform interprets many files would also be usefull. Just my 2 cents as feedback. Anyway, this tutorial and setup is simplest i could find in internet. Thank you!

  • @foobar108
    @foobar108 Před měsícem

    Great explanation 🎉 Thanks a lot

  • @jnelly3426
    @jnelly3426 Před rokem

    This is a good video. Great explanation

  • @loserguy777
    @loserguy777 Před 2 lety +1

    Great video, which theme are you using?

  • @PetritK10
    @PetritK10 Před 2 lety

    Nice bro :D, i love Terraform,

  • @onemanops
    @onemanops Před rokem

    very well done
    thx

  • @TempestofTime
    @TempestofTime Před 2 lety +5

    Awesome tutorial. It's nice that TF is finally in 1.x version, using 0.x versions on production felt kinda.. off, even though it worked fine.
    One comment regarding the video: That "buzzing" while showing "chapter name" was kinda annoying :/

  • @bthegawd8113
    @bthegawd8113 Před 2 lety +2

    I use terraform daily for my job. It’s amazing and easy to track all the resources created for our cloud workloads.

  • @marcbria6086
    @marcbria6086 Před 2 lety

    Big fan of your work. Thanks!
    I have a stupid doubt about terminology... as terraform is for infrastructure would be more a SysOp tool than a DevOps?

    • @christianlempa
      @christianlempa  Před 2 lety

      Thank you mate! Terraform is a tool you can use in many different ways, it should be part of SysOp and DevOps toolset.

  • @klemol5682
    @klemol5682 Před 2 lety

    Thank you for this video. Can you perhaps share which shell are you using in this video and its config file ? I really like type-ahead prediction (like at 9:18)

    • @christianlempa
      @christianlempa  Před 2 lety

      Cheers! I recently did a video about my terminal, it has changed a lot though :D

  • @kenmurphy4259
    @kenmurphy4259 Před 2 lety

    Love Terraform…

  • @tonynekola8241
    @tonynekola8241 Před 2 lety

    The shell looks awesome , what shell do you use ?

    • @christianlempa
      @christianlempa  Před 2 lety

      I'm using Windows Terminal and Powershell or WSL2 ZFS and Starship prompt

  • @Flako-dd
    @Flako-dd Před 2 lety +1

    From a Homelab perspective I prefer ansible + docker I don't really have servers standing around like cattle. All my servers are trash to treasure snowflakes :)
    Enterprise use cases are of course a different thing.
    At any rate, great video!

    • @christianlempa
      @christianlempa  Před 2 lety +1

      Thanks mate! Yeah I think for Homelab Ansible makes more sense

  • @ronnysimonsen
    @ronnysimonsen Před rokem

    In a way Terraform make me think about IBM Openshift. How about making a tutorial about Terraform with VMWare? Maybe you already did?

    • @christianlempa
      @christianlempa  Před rokem

      Nah not yet, I'm not using VMWare so that would be a bit difficult for me to make

  • @KaydotOrigin
    @KaydotOrigin Před 2 lety +1

    Can this automate docker-compose files? This is amazing

    • @christianlempa
      @christianlempa  Před 2 lety

      I don't think so, as docker-compose is another container management tool. Maybe there is a way but I haven't found it yet.

    • @bthegawd8113
      @bthegawd8113 Před 2 lety

      Terraform does not manage docker compose let alone docker itself. You can create eks, ecs resource in aws for example but thats about it.

    • @Samuel.Mwangi
      @Samuel.Mwangi Před 2 lety

      If used in combination, yes you can use ansible to orchestrate anything including docker but the fact you can doesn't make it the best way to do it.

  • @Technik500
    @Technik500 Před rokem

    how do i give you money?

  • @chswin
    @chswin Před rokem

    What it is, is the world telling the non-programmer IT switch and knob tinkerers that it is time to learn how to code.

  • @TheOnlyEpsilonAlpha
    @TheOnlyEpsilonAlpha Před 11 měsíci

    OUCH 😣 that transition sound on the chapters or when a title appears is so annoying and makes that video so hard to hear. Especially if you want to focus and learn something from it. Hope there will be a new version someday where that sound is not present

  • @m.mukunthan5536
    @m.mukunthan5536 Před 2 lety

    Hi bro