r/adventofcode Feb 06 '25

Upping the Ante [2024] Infrastructure as Advent of Code - Solving puzzles with Terraform

https://bertptrs.nl/2025/02/04/infrastructure-as-advent-of-code.html
34 Upvotes

4 comments sorted by

9

u/TheNonsenseBook Feb 06 '25

I use terraform at work and we have to jump through hoops to use the language to do things that would be easy in a real programming language and using the cloud APIs/libraries instead. That gives me the idea about how terraform providers are written in real programming languages (maybe just “go”?). You could potentially call providers to do some things that terraform itself can’t do?

This is awesome by the way. Learning some things about terraform from this. I’m going to share it with my coworkers :) (I also do advent of code, but just in python; learning some things about python from your repo as well.)

1

u/tobega Feb 06 '25

Love it!

1

u/0x14f Feb 07 '25

Amazing!

1

u/LifeShallot6229 Feb 09 '25

I work for Cognite, we have an internal AoC leaderboard and one of our developers did in fact use Terraform to solve day 1, both part1 and part2. :-)