When I joined, the company was doing very well at being a start-up, and it had the infrastructure to prove it.
That’s not a dig. Scale-ups move fast rather than trying to perfect everything, and that’s usually the right call. But moving fast leaves a trail. A lot of our Google Cloud setup had been built by clicking around in the console. The parts that were in code used CDKTF, which is TypeScript sitting on top of Terraform.
CDKTF turned out to be its own problem. TypeScript is procedural, and Terraform is declarative. People wrote the infrastructure the way they’d write an app, so lots of code was coupled together when it had no reason to be. (I think people overestimate DRY sometimes, but that’s a post for another day.)
So we had two jobs: get the ClickOps resources into code, and get the CDKTF code into plain Terraform and Terragrunt. Here’s what I learnt doing it, roughly in the order I learnt it.
1. The technology is the easy part#
Someone had already scoped the project and built the fundamentals of the Terraform and Terragrunt setup from scratch. The tooling was sorted. What wasn’t sorted was the team.
Two of us were pushing for the move, one from my team and one from another. Someone else on my team was fighting it. It had become an “us and them” thing, and no amount of good HCL fixes that.
2. Make stone soup#
I borrowed an idea from The Pragmatic Programmer: Stone Soup. You don’t ask for everyone’s buy-in up front. You build something small, show how reasonable it is, and let people try a bit. When they start to see how good it is, you say, “It’d be even better if we did this.” Then you do it again.
It was slow. But over time, people came on board.
I’ll be honest that we also had help from outside the team. CDKTF stopped being supported, which made “maybe later” a much harder position to hold. Sometimes the deprecation notice does half the convincing for you.
3. Listen to what the worry actually is#
The person resisting wasn’t being difficult for fun. When I looked at it from their side, the real worry was whether our team was technically capable of doing this.
That’s a fair worry, and arguing with it doesn’t help. Showing does. Another teammate jumped in and did the work, and kept doing it, many times over. Every time that happened, the worry got a little smaller.
I’ve always pushed continuous learning in that team, in pretty much every conversation we had. More than that, I tried to work that way myself: always learning more, always putting myself out there. You teach by action. Telling people what to do doesn’t get you very far.
4. Learn import properly#
If there’s an 80/20 in a migration like this, it’s Terraform’s import. Understanding it is what let us bring existing CDKTF resources and ClickOps resources into the main project without rebuilding anything.
It took me longer to get than I’d like to admit. I was juggling a lot of things at once, and I don’t do well focusing on one thing while ten others are calling. But once it clicked and I’d shown it to the team, we could start moving for real.
5. Then automate it#
Doing imports by hand gets old fast, so I scripted it. From memory, it went something like this:
- Pull down all the GCP resources, with their types and the rest of their details.
- Compare them against what was already in the Terraform state.
- For anything missing, generate the code, one resource at a time.
- Do a second run as a sanity check to make sure nothing would change.
- Add the resources to the project and confirm nothing had broken.
By the end, you could point the script at a resource and, boom, it was in code. AI helped a lot here, both in building the script and in understanding the edge cases I kept tripping over.
6. No big bang#
This is what “without disrupting BAU” really means. We didn’t plan a cut-over weekend. We started with the small, low-risk resources and built up from there, one by one, release after release, until everything was in code. Each step was small enough that if something went wrong, it was obvious what had caused it.
7. Spend the time on the bricks#
If someone started this same migration on Monday, this is what I’d tell them, and what I’d do differently myself.
Dedicate time to learning the tool before you start building with it. It’s like deciding to build a house when you’ve never laid a brick and don’t really know how bricklaying works. If I’d spent a few days in a test project or working through some tutorials on how Terraform imports work, I’d have got there much faster. And that was the 20% that gave us the most traction.
That applies well beyond Terraform.
So how did it end? We got about 90% of our ClickOps and CDKTF resources into Terraform and Terragrunt. Then the business decided to move everything to AWS, so the last 10% never mattered.
I won’t pretend I didn’t want to see it finished. But the parts I’d keep aren’t specific to Google Cloud anyway: making stone soup, listening to the worry behind the resistance, learning the bricks, and shipping one small piece at a time. Those come with me to whatever cloud is next.

