# Terraform Your Way to the Cloud with Konnect Dedicated Cloud Gateways
Declan Keane
Senior Solutions Engineer, Kong
Imagine a world where you could deploy your API gateways across any cloud, enforce enterprise-grade policies, and meet compliance standards all within a single Terraform apply.
Most teams think about infrastructure as code only in terms of spinning up VMs, networking components, databases, or maybe a Kubernetes cluster. But what if your API platform was just as programmable?
With Kong’s Konnect platform and its support for Terraform, that reality is here today!
**This content contains a video which can not be displayed in Agent mode**
## Automate Everything: Kong Gateway + API Management with Terraform Across Any Cloud
Too many organizations manually manage their API gateways and policy enforcement today. As humans, we make mistakes. You’ve got one team manually configuring Kong or another gateway on AWS, another fiddling with policies in Azure, and someone else applying governance rules by hand in GCP. That’s a recipe for drift, inconsistency, and eventual chaos.
What you need is consistency, repeatability, and control across all environments, in all clouds, at all times.
## Enter Kong Konnect and the Konnect Terraform Operator
And because DCGWs are fully managed by Kong but deployed in your preferred cloud region, they give you all the benefits of a hosted solution without giving up performance or reliability.
Here’s where it gets really powerful: you can provision those Dedicated Cloud Gateways using Terraform across AWS, Azure, and GCP. Across any supported region. Within a couple of minutes, your organization can be serving APIs across the globe.
But it doesn’t stop there. You can also define your Kong Gateway API configurations, routes, rate-limiting policies, authentication methods, and even governance rules all in Terraform code.
- Want to do business in Europe? Deploy a new gateway in Ireland.
- Want to onboard a new API? Define it in a Terraform module.
- Need to apply global authentication policies? Push a config update with terraform apply.
- Want to validate compliance across environments? Bake that logic right into your CI/CD pipeline.
With this approach, everything becomes version-controlled, testable, and portable. Your API infrastructure is no longer dependent on tribal knowledge or a handful of screenshots in Confluence. Instead, it’s code. PR reviewed. Auditable. Reproducible.
Log in to Konnect and search for the “Global Control Plane.” It can take a few minutes for the gateways to spin up. Go grab a coffee!
We can see here that we have deployed Kong Gateways across two different cloud providers, AWS and Azure. One on the east and one in a western US-based data center. But they could also be across different regions and even in GCP.
If you click on “Connect,” it will also give you regional and top-level DNS records for the gateway proxy. Try routing to all of them.
The regional ones (as you might have guessed) will route to the regional gateways. While the top-level one will route to the closest one to you based on latency. I’m on the West Coast, so I'll be routed to the West Coast gateways. While some of my colleagues on the East Coast would be routed to the East Coast ones.
With the configuration we defined in `service-config.tf` this will deploy the Gateway Service, Route, and Rate Limiting plugin. All in Terraform as code.
## Wrapping it: Your APIs Deserve Better
Most teams are still managing APIs like it’s 2013. You can change that.
By combining Kong’s Dedicated Cloud Gateways, Konnect, and Terraform, you can see tremendous value
- **Automation**: Automating gateway provisioning, API lifecycle, policy enforcement, and governance reduces manual errors and increases efficiency.
- **Consistency and Repeatability**: Using Terraform ensures consistent configurations across all environments and clouds, eliminating drift and chaos.
- **Multi-Cloud Deployment**: Deploying API gateways across multiple clouds (AWS, Azure, GCP) and regions provides flexibility and global reach.
- **Scalability**: Enabling Autopilot for autoscaling ensures the API infrastructure can handle varying traffic loads.
- **Version Control and Auditability**: Managing API infrastructure as code allows for version control, PR reviews, and auditing, improving security and compliance.
- **Reduced Tribal Knowledge Dependence**: Infrastructure is defined in code, reducing reliance on individual knowledge and improving maintainability.
- **Faster Deployment**: Provisioning gateways and configuring APIs using Terraform is quicker than manual methods, enabling faster time-to-market.
- **Cost Efficiency**: Optimized resource utilization and reduced manual effort can lead to cost savings.
Traditional agreement processes were slow and heavily manual. Documents were often created in office tools, shared through email, printed, signed physically, and stored across multiple systems. Tracking the status of agreements required manual follo
Architecture Overview
A multicloud DCGW architecture typically contains three main layers.
1\. Konnect Control Plane
The SaaS control plane manages configuration, plugins, and policies. All gateways connect securely to this layer.
2\. Dedicated C
It’s no secret that building global API infrastructure is a daunting task. In April, we announced the general availability of Kong Konnect Dedicated Cloud Gateways — a fully managed, multi-region API management solution that makes setting up globa
Managed Redis cache is a turnkey "Shared State" add-on for Kong Dedicated Cloud Gateways. It is designed to combine the performance of an in-memory data store with the simplicity of a SaaS product. When you spin up a Dedicated Cloud Gateway in Kong
Now you can find and purchase Kong Konnect through the Google Cloud Marketplace! Kong Konnect is the unified API platform that allows you to manage multiple gateways across service meshes, ingress, cloud, and Kubernetes providers no matter where t
Today, APIs are based on modern communication patterns: REST, GraphQL, or gRPC. But two decades ago, the majority of Web Services were developed with SOAP/XML.
In this blog, we’ll explain how Kong Konnect can manage SOAP/XML Web Services by creat
Since the initial launch of Kong Konnect Cloud, one common feature request has (unsurprisingly) been Multi-Region support. Many customers look for SaaS solutions that support a distributed service architecture. Even at its inception, our goal was to