home.social

#terragrunt — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #terragrunt, aggregated by home.social.

fetched live
  1. #DevOps challenge for today. Explain to my kids (#JuniorEngineers), that there is little difference between #Terraform vs #OpenTofu , and that #Terragrunt keeps shit #DRY , because some of them just dont quite "understand" why terragrunt is necessary.

    Gladly I will take input from others who would provide opinions that I can easily communicate later.

  2. Atlantis: что пошло не так, а потом — так

    Всё началось с желания организовать и автоматизировать работу с Terraform, впоследствии с Terragrunt, выстроить управляемый процесс, централизовать, настроить понятный RBAC, в общем, сделать так, «чтобы было красиво». Было сделано несколько подходов, и были рассмотрены разные варианты. Отправной точкой стало структурирование кода, его декомпозиция и рефакторинг, и постепенно дошло до автоматизации самого процесса применения (или просто plan/apply). К этому моменту основная часть кода сконцентрировалась в монорепозитории в self-hosted GitLab, общая и повторяемая логика отделилась во внутренние приватные модули, а сам код вырос в объёмах: более 4 000 .tf файлов, не учитывая внешних и внутренних модулей, более 900 проектов (каталогов), более 30 000 ресурсов, более 30 уникальных провайдеров Terraform. Конечно, все эти условия в той или иной степени повлияли на конечный выбор. В этой статье расскажу, как мы перешли от ручного управления Terraform и Terragrunt к автоматизированному процессу на базе Atlantis, какие альтернативы рассматривали, почему выбрали именно Atlantis и с какими неочевидными особенностями столкнулись при его эксплуатации.

    habr.com/ru/articles/1073152/

    #terraform #terragrunt #atlantis #aws #devops

  3. Today's Challenge: try to pull apart a #Cloudformation template (because #CFT sucks as an #IaC solution) and build #Terraform from it. Ive been working on this one all day. I mean, I even built #terragrunt hcls around it to deploy it DRY.

    But does anyone deal with Cloudformation in AWS accounts and actually have a good opinion about it?

    Because I can find NOTHING good about it.

  4. So my engineer (who is my problem child), admitted today that he can only work in #azure environments, and refuses to work in #aws and #gcp environments. Because he doesnt understand them, how they work, or how to build stuff in them. Despite his constant use of #claude to build #IaC #terragrunt. So console and env awareness shouldnt matter right?

    #Devops #Cloudops #Revops #FinOps #WhatTheFuckEverOps

    As everyone can guess (I am the at the bottom of the list in the pic).

  5. > Mildly complex logic constraint
    > Attempt to encode in variable constraints
    > Compiler too dumb to realize what I'm doing
    > Figure out a check resource and assertion provider
    > Terragrunt swallows the error

    Terraform, not even once

    #Terraform #Terragrunt

  6. Ok, one more but it goes with 2. : DO NOT configure your providers in the #terraform / #opentofu code. You're shooting yourself in the foot here, let #terragrunt handle this dynamically.

  7. The more I work as a Dev Ops / Platform Eng, the more I fight a single anti-pattern.

    For your future self :
    1. Use #terragrunt and not only #terraform / #opentofu ,
    2. Centralize you #tf code in different modules in a single repository and have #tg use them ,
    3. That one goes without saying but here it is : DRY your code using locals !

    I'm tired of removing hundred lines of #IaC code just for the sake of maintainability.

  8. Am I the only person who sees no advantage in using Terragrunt over pure Terraform/OpenTofu? If anything i think it adds unnecessary complexity that you're locked in to.

    #IaC #Terragrunt #Terraform #OpenTofu #CNCF

  9. Just when I thought I was almost out of yaks (and finally installing #Airflow!), #terragrunt got confused and started demanding to create resources that already exist, which broke #openEBS, which broke... sigh ...

    Another 2 days of work later, #argocd is installed in my neurons and my cluster, and most of my config is refactored "enough". I swear we'll actually get to do some #datascience someday folks...

    Big data on a tiny budget is hard!

    #dataengineering #sre

  10. @arichtman *cluster api instead of #terraform and #terragrunt - tg makes it a lot nicer to work with tf, we still have to make use of the tf helm provider for a handful of things like #karpenter but outside of that the TF has been painless after the initial dev on all the modules.

  11. spacelift.io/blog/terragrunt-v - #Terragrunt sits on top of #Terraform and gives before and after hooks, and focuses on removing duplication in Terraform content and parameters. terragrunt.gruntwork.io/docs/f

  12. Деплой больших инфраструктур в Yandex Cloud: как минимизировать риски и ошибки

    Привет, Хабр! Я Алексей Колосков, DevOps‑инженер Hilbert Team. Сегодня я расскажу вам историю о компании, которая из маленькой облачной инфраструктуры выросла до сложного решения с использованием Infrastructure as Code (IaC) и Terraform. И, как это часто бывает, в процессе роста учли не всё. Все персонажи вымышлены и любые совпадения случайны (ну, почти). В этой статье покажу грабли, на которые можно наступить при росте облачной инфраструктуры, и расскажу, как их обойти.

    habr.com/ru/companies/yandex_c

    #облака #terraform #terragrunt #деплой #деплоймент #квоты #лимит #iac #infrastructure_as_code #масштабирование

  13. 🚀 Creating Terraflow, a CI/CD orchestrator to scale Terraform 🦖

    Managing Terraform and Terragrunt at scale come with its own set of challenges! Learn how we got through them in my latest article:

    0xdc.me/blog/creating-terraflo

    #Terraform #Terragrunt #InfrastructureAsCode #DevOps #Automation #IaC #Git #GitHub

  14. A demo project I once used to introduce #Terragrunt as a wrapper for #Terraform to my teams when working as a freelance #devops engineer.

    github.com/katzefudder/terragr

    Please let me know what you think of my approach to introduce environments, and not to change that much for the Terraform project.

  15. How could I have missed this? Terragrunt finally uses a symlink instead of downloading a Terraform provider over and over again.
    #terragrunt #terraform #cache #provider

    github.com/gruntwork-io/terrag

  16. Terraform: поиск оптимального написания кода

    Всем привет и добро пожаловать! Сегодня хочу поделиться, к каким выводам и рекомендациям я пришёл за несколько лет практического использования Terraform в разнообразных сценариях, как результат его эксплуатации с множеством Terraform Providers (не только облачных), от подготовки окружения под конкретные сервисы до создания инфраструктуры всей компании. Для начала давайте определим, что такое Terraform. Terraform - это инструмент, который позволяет безопасно и эффективно создавать, изменять и управлять облачными и локальными ресурсами, и который реализует концепцию "инфраструктура как код" (IaC) - Terraform Intro . Он предоставляет декларативную модель. Это значит, что мы описываем конечное состояние инфраструктуры или конкретного ресурса, и нам не нужно описывать пошаговые инструкции. Он имеет свой язык описания - HashiCorp Configuration Language (HCL) . Далее этот код преобразуется в вызовы к API провайдера. О том, как работает Terraform, можно ознакомиться в его официальной документации . Теперь давайте ответим на вопрос, а нужен ли вообще Terraform. Мой ответ - да. И вот собственно почему:

    habr.com/ru/articles/817839/

    #terraform #terragrunt #iac #hcl #aws

  17. The #AWS User Group #Nürnberg meets in March with two talks about #Terragrunt and #Kubernetes by Lukas Hartrumpf and Clemens Buchacher at nerdware with beer and pizza. Join us in person or online. 🤓

    meetup.com/nurnberg-aws-user-g

  18. Автоматическая генерация CI/CD пайплайна для развёртывания инфраструктуры

    При нашей работе мы используем подход «Инфраструктура как код». Однако в процессе его использования мы столкнулись с проблемой написания пайплайнов для инфраструктуры. Во всём «виноват» terragrunt: каждому модулю terragrunt нужна отдельная джоба в пайплайне на plan и apply, но для каждого модуля они во многом повторяют друг друга. Подобное постоянное написание одинаковых частей CI/CD пайплайна при добавлении новых баз и бакетов навевало тоску. Рассказываем, как мы создали генератор джоб в Gitlab CI/CD и навсегда забыли о ручном написании пайплайнов для развёртывания элементов инфраструктуры.

    habr.com/ru/companies/magnit/a

    #ci/cd #gitlab #gitlabci #terragrunt #terraform #инфраструктура_как_код #пайплайн #автогенерация

  19. Ever wish you could generate the provider configs at runtime for ? I've set up a way to do this using . Hope it helps someone and feedback/improvements welcome. github.com/grimm26/terragrunt-

  20. @arichtman the real question from me here would be - what's wrong with #terragrunt ?