vibe code your landing zones

What if I told you there’s an even easier way to deploy your Landing Zone (LZ)

If like me your preferred IaC language is Terraform you’ll be used to hand crafting the scripts & modules to deploy your LZ elements as per the required design. It’s an intensive effort even for a moderately sized deployment.

Now there’s an easier way. You can simply describe what you need (your design), using well written & accurate prompts and GitHub CoPilot (GHCP) will build out your terraform code/modules to match this design:

How to get started prompting Landing Zones?

Fire up VS Code

We’re going to assume you already have:

  • Github repo setup for your LZ
  • VS Code is logged into the same Github account your new LZ is in
  • VS Code configured with required extensions (HashiCorp Terraform, Microsoft Terraform, Azure Resources)

GHCP is now integrated with VS Code – update your version of VS Code if possible otherwise install the GHCP extensions

Witin VS Code use Ctrl + Alt + I to launch the GHCP prompting window, it should look like this:

Locally within VS Code make sure you have a folder structure setup for your LZ

My_Landing_Zone
-----------modules/
           -------management
           -------connectivity
           -------identity
           -------subscriptions
-----------environments/
-----------------------dev/
-----------.github/
-----------------------copilot-instructions.md/
-----------main.tf
-----------variables.tf
-----------outputs.tf
-----------terraform.tfvars

Let’s Prompt

Ok, with everything ready here’s the initial prompt:

GHCP does it’s thing:

This creates your initial LZ configuration, we’ve still got to deploy to Azure

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.