Recently, I got an opportunity to work on an interesting project where we migrated our APIs from AWS API Gateway to Kong Konnect.
One thing we wanted to improve during this migration was how we managed API configurations and deployments.
Earlier, managing configurations manually wasn't the approach we wanted to continue with. So, we decided to move towards Infrastructure as Code (IaC) and automate the entire process as much as possible.
For this, we used CDKTF (Terraform with TypeScript) to manage Kong configurations and Azure DevOps to handle deployments.
Here's a little about what we did and some of the challenges we came across.
What did we implement?
We wanted to manage everything through code instead of depending on manual UI configurations.
Here's how we approached it:
Created Kong services, routes and plugins using CDKTF.
Managed Dev, Stage and Production environments using a common codebase.
Built Azure DevOps pipelines to automate Terraform deployments.
Implemented a Plan β Approval ββ¦