~/talk

Managing Terraform modules at scale

Talkat NDC Copenhagen 2025 · 2025-09-08..09-12· [devops-and-delivery]
slides:none on file

Describes managing Terraform at scale for an org running 20 staging environments, moving from copy‑paste and a monorepo to versioned modules in separate repos. Uses Atlantis (and its problem that Atlantis locks state per PR), git‑ref modules with branch/version tagging, a test environment for module promotion, a local module pull workflow for fast lint/validate, and state import/move to migrate resources. Works faster and safer but still requires drift detection, manual two‑step applies for provider‑initialized resources, and human coordination.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Problem statement
  3. 8:12What constitutes an environment in Terraform
  4. 9:15Requirements for managing multiple environments
  5. 11:24Orchestrating Terraform with Atlantis
  6. 12:51Environment structure and code organization
  7. 14:38Evolution from copy-paste to modularization
  8. 16:22Terraform modules
  9. 19:15Module challenges
  10. 24:13Layered infrastructure design
  11. 26:43Introducing stacks
  12. 30:34Versioning workflow
  13. 34:45Social challenges
  14. 37:30Local development
  15. 40:21Final workflow
  16. 41:25Provider constraints
  17. 47:26Drift detection
  18. 48:50Migrating to modules
  19. 51:18Migration limitations
  20. 53:24Tools considered
  21. 54:07Key takeaways
  22. 55:12Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.