Reverse Engineering Existing Infrastructure

#5 - Infrastructure as Code - Kief Morris

Topic 16 of 17

Published Sep 7, 2020 · Clip 53:43–55:03 (1:20)

Kief addresses adopting IaC for existing infrastructure. While tools exist that can generate Terraform code from existing cloud resources, he doesn't recommend relying on them beyond a learning exercise, since generated code won't be well-structured, factored, or tested. Instead, he recommends rebuilding infrastructure piece by piece with clean code, tests, and pipelines, using patterns like Expand and Contract to migrate over, similar to refactoring a monolith into microservices.