#terragrunt — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #terragrunt, aggregated by home.social.
-
#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.
-
Atlantis: что пошло не так, а потом — так
Всё началось с желания организовать и автоматизировать работу с Terraform, впоследствии с Terragrunt, выстроить управляемый процесс, централизовать, настроить понятный RBAC, в общем, сделать так, «чтобы было красиво». Было сделано несколько подходов, и были рассмотрены разные варианты. Отправной точкой стало структурирование кода, его декомпозиция и рефакторинг, и постепенно дошло до автоматизации самого процесса применения (или просто plan/apply). К этому моменту основная часть кода сконцентрировалась в монорепозитории в self-hosted GitLab, общая и повторяемая логика отделилась во внутренние приватные модули, а сам код вырос в объёмах: более 4 000 .tf файлов, не учитывая внешних и внутренних модулей, более 900 проектов (каталогов), более 30 000 ресурсов, более 30 уникальных провайдеров Terraform. Конечно, все эти условия в той или иной степени повлияли на конечный выбор. В этой статье расскажу, как мы перешли от ручного управления Terraform и Terragrunt к автоматизированному процессу на базе Atlantis, какие альтернативы рассматривали, почему выбрали именно Atlantis и с какими неочевидными особенностями столкнулись при его эксплуатации.
-
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.
-
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).
-
> 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 errorTerraform, not even once
-
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.
-
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.
-
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.
-
The apply before-or-after merge debate is perennial, but I find this article from Terramate covers it thoroughly and has a nice tabulated summary at the end.
#Terramate #Terraform #Terragrunt #DevOps #OpenTofu #IaC #Cloud #PlatformEngineering
-
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!
-
@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.
-
https://spacelift.io/blog/terragrunt-vs-terraform - #Terragrunt sits on top of #Terraform and gives before and after hooks, and focuses on removing duplication in Terraform content and parameters. https://terragrunt.gruntwork.io/docs/features/hooks/
-
Ever ran into a locked state file in Terragrunt? Learn how to force unlock it!
🔗 Read more: https://til.sanyamkhurana.com/#/topics/terragrunt/force-unlock-state-file
#Terragrunt #Terraform #DevOps #TIL #InfrastructureAsCode #Cloud 🚀
-
Terragruntで特定のディレクトリのみプロバイダーを追加したいときの書き方
https://dev.classmethod.jp/articles/terragrunt-provider-management-strategies/ -
Деплой больших инфраструктур в Yandex Cloud: как минимизировать риски и ошибки
Привет, Хабр! Я Алексей Колосков, DevOps‑инженер Hilbert Team. Сегодня я расскажу вам историю о компании, которая из маленькой облачной инфраструктуры выросла до сложного решения с использованием Infrastructure as Code (IaC) и Terraform. И, как это часто бывает, в процессе роста учли не всё. Все персонажи вымышлены и любые совпадения случайны (ну, почти). В этой статье покажу грабли, на которые можно наступить при росте облачной инфраструктуры, и расскажу, как их обойти.
https://habr.com/ru/companies/yandex_cloud_and_infra/articles/858704/
#облака #terraform #terragrunt #деплой #деплоймент #квоты #лимит #iac #infrastructure_as_code #масштабирование
-
🚀 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:
https://0xdc.me/blog/creating-terraflow-a-cicd-orchestrator-to-scale-terraform/
#Terraform #Terragrunt #InfrastructureAsCode #DevOps #Automation #IaC #Git #GitHub
-
A demo project I once used to introduce #Terragrunt as a wrapper for #Terraform to my teams when working as a freelance #devops engineer.
https://github.com/katzefudder/terragrunt_demo
Please let me know what you think of my approach to introduce environments, and not to change that much for the Terraform project.
-
How could I have missed this? Terragrunt finally uses a symlink instead of downloading a Terraform provider over and over again.
#terragrunt #terraform #cache #providerhttps://github.com/gruntwork-io/terragrunt/releases/tag/v0.56.4
-
When he said "particular skills" he meant HCL
#IaC #AWS #Terraform #Terragrunt #DevOps #PlatformEngineering #HCL #Cloud
-
Terraform: поиск оптимального написания кода
Всем привет и добро пожаловать! Сегодня хочу поделиться, к каким выводам и рекомендациям я пришёл за несколько лет практического использования Terraform в разнообразных сценариях, как результат его эксплуатации с множеством Terraform Providers (не только облачных), от подготовки окружения под конкретные сервисы до создания инфраструктуры всей компании. Для начала давайте определим, что такое Terraform. Terraform - это инструмент, который позволяет безопасно и эффективно создавать, изменять и управлять облачными и локальными ресурсами, и который реализует концепцию "инфраструктура как код" (IaC) - Terraform Intro . Он предоставляет декларативную модель. Это значит, что мы описываем конечное состояние инфраструктуры или конкретного ресурса, и нам не нужно описывать пошаговые инструкции. Он имеет свой язык описания - HashiCorp Configuration Language (HCL) . Далее этот код преобразуется в вызовы к API провайдера. О том, как работает Terraform, можно ознакомиться в его официальной документации . Теперь давайте ответим на вопрос, а нужен ли вообще Terraform. Мой ответ - да. И вот собственно почему:
-
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. 🤓
https://www.meetup.com/nurnberg-aws-user-group/events/299313875/
-
Автоматическая генерация CI/CD пайплайна для развёртывания инфраструктуры
При нашей работе мы используем подход «Инфраструктура как код». Однако в процессе его использования мы столкнулись с проблемой написания пайплайнов для инфраструктуры. Во всём «виноват» terragrunt: каждому модулю terragrunt нужна отдельная джоба в пайплайне на plan и apply, но для каждого модуля они во многом повторяют друг друга. Подобное постоянное написание одинаковых частей CI/CD пайплайна при добавлении новых баз и бакетов навевало тоску. Рассказываем, как мы создали генератор джоб в Gitlab CI/CD и навсегда забыли о ручном написании пайплайнов для развёртывания элементов инфраструктуры.
https://habr.com/ru/companies/magnit/articles/776214/
#ci/cd #gitlab #gitlabci #terragrunt #terraform #инфраструктура_как_код #пайплайн #автогенерация
-
Ever wish you could generate the provider configs at runtime for #terraform? I've set up a way to do this using #terragrunt . Hope it helps someone and feedback/improvements welcome. https://github.com/grimm26/terragrunt-build-providers
-
@arichtman the real question from me here would be - what's wrong with #terragrunt ?
-
I wrote a blog post: "Using #direnv with #terraform, #terragrunt, #saml2aws, #SOPS and #AWS #KMS"
https://jon.sprig.gs/blog/post/3057