Ansible vs Terraform: Which is Really Better for Infrastructure?

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • ✅ Full code from the video on Github: github.com/top...
    🛠️ Check out my Ansible course: learn.toptechs... (early access)
    In this video I compare Ansible and Terraform by using both tools to spin up a publicly accessible EC2 instance and configure it to respond to HTTP requests. Ansible and Terraform are both Infrastructure as Code (IaC) tools, each with its own strengths and weaknesses. I personally think Terraform is superior to Ansible for the "Infrastructure Management" part of IaC, but Ansible is the right tool to use for "Configuration Management" and "Infrastructure Orchestration" -- this video shows you why.
    0:41 - Intro to the repo and task
    1:13 - Intro to Infrastructure as Code (IaC) + where Ansible and Terraform fit
    2:24 - Provision a publicly accessible EC2 instance with Ansible
    4:14 - Making changes to existing AWS infrastructure with Ansible
    5:56 - Destroying existing AWS infrastructure with Ansible
    6:24 - Summary of "Infrastructure Management" in Ansible
    6:58 - Provision a publicly accessible EC2 instance with Terraform
    9:23 - Making changes to existing AWS infrastructure with Terraform
    11:24 - Ansible vs Terraform for "Infrastructure Management"
    11:42 - Remote state in Terraform
    12:08 - Destroying existing AWS infrastructure with Terraform
    12:46 - Downsides of Terraform vs Ansible (for "Infrastructure Management")
    13:46 - Configure EC2 instance to respond to HTTP requests using Ansible ("Configuration Management")
    16:01 - Do a rolling restart/rolling reboot of EC2 instances using Ansible ("Infrastructure Orchestration")
    Thanks for watching and hope it's entertaining/useful for you! Hit me up in the comments if you have any questions or feedback 💪.
    Related & Channel
    ▶️ bit.ly/2VWid3D == Playlist of all Ansible videos
    ⭐️ bit.ly/2HavqCu == Subscribe to our RUclips Channel
    Our Site & Socials
    🌐 bit.ly/2shtKwZ == TopTechSkills.com
    🐦 bit.ly/2RkgZkk == @TopTechSkills on Twitter
    🐦 bit.ly/2AA19aN == @PercyGrunwald on Twitter
    😃 bit.ly/2ACQgEW == @TopTechSkills on Facebook
    🕹 bit.ly/2CWR3ST == @PercyGrunwald on Twitch

Комментарии •

  • @ronen2512
    @ronen2512 3 месяца назад +1

    very informative, thanks

  • @BruceTimberlake
    @BruceTimberlake 6 месяцев назад +2

    Looks interesting, very straightforward. Most of my team's resources are on-prem data center stuff (vms we request via a tool, or hardware that another team racks etc.), so I can't play with fancy cloud tools like this, at least not yet. But thanks for making this video!

    • @toptechskills
      @toptechskills  6 месяцев назад

      Thanks a lot for the comment @BruceTimberlake. Hopefully Terraform comes in handy if you start working with cloud infrastructure. Presuming you’re using Ansible for managing the VMs/bare metal you mentioned, is that right?

  • @jdwdrums
    @jdwdrums 5 месяцев назад +1

    Are you still working on finishing your Productive with Ansible course? Any updates on an ETA?

    • @toptechskills
      @toptechskills  5 месяцев назад

      Hi @jdwdrums, thanks for your comment. No ETA on the final chapter just yet, sorry. I’ve been trying to make some sales before throwing myself at the final chapter. First 2 chapters are up and ready to go, not sure if you had a chance to check them out already. Thanks again for the support.