REGISTER NOW FOR THE KONG AGENTIC ERA WORLD TOUR GOVERN A2A TRAFFIC WITH KONG'S NEW AGENT GATEWAY WHY GARTNER’S “CONTEXT MESH” CHANGES EVERYTHING DON’T MISS API + AI SUMMIT 2026 SEPT 30 – OCT 1
  • [Why Kong](/company/why-kong)Why Kong
    • Explore the unified API Platform
        • BUILD APIs
        • [
          Kong Insomnia](/products/kong-insomnia)
          Kong Insomnia
        • [
          API Design](/products/kong-insomnia/api-design)
          API Design
        • [
          API Mocking](/products/kong-insomnia/api-mocking)
          API Mocking
        • [
          API Testing and Debugging](/products/kong-insomnia/api-testing-and-debugging)
          API Testing and Debugging
        • [
          MCP Client](/products/kong-insomnia/mcp-client)
          MCP Client
        • RUN APIs
        • [
          API Gateway](/products/kong-gateway)
          API Gateway
        • [
          Context Mesh](/products/kong-konnect/features/context-mesh)
          Context Mesh
        • [
          AI Gateway](/products/kong-ai-gateway)
          AI Gateway
        • [
          Event Gateway](/products/event-gateway)
          Event Gateway
        • [
          Kubernetes Operator](/products/kong-gateway-operator)
          Kubernetes Operator
        • [
          Service Mesh](/products/kong-mesh)
          Service Mesh
        • [
          Ingress Controller](/products/kong-ingress-controller)
          Ingress Controller
        • [
          Runtime Management](/products/kong-konnect/features/runtime-management)
          Runtime Management
        • DISCOVER APIs
        • [
          Developer Portal](/products/kong-konnect/features/developer-portal)
          Developer Portal
        • [
          Service Catalog](/products/kong-konnect/features/api-service-catalog)
          Service Catalog
        • [
          MCP Registry](/products/mcp-registry)
          MCP Registry
        • GOVERN APIs
        • [
          Metering and Billing](/products/kong-konnect/features/usage-based-metering-and-billing)
          Metering and Billing
        • [
          APIOps and Automation](/products/apiops-automation)
          APIOps and Automation
        • [
          API Observability](/products/kong-konnect/features/api-observability)
          API Observability
        • [Why Kong?](/company/why-kong)Why Kong?
      • CLOUD
      • [Cloud API Gateways](/products/kong-konnect/features/dedicated-cloud-gateways)Cloud API Gateways
      • [Need a self-hosted or hybrid option?](/products/kong-enterprise)Need a self-hosted or hybrid option?
      • COMPARE
      • [Considering AI Gateway alternatives? ](/performance-comparison/ai-gateway-alternatives)Considering AI Gateway alternatives?
      • [Kong vs. Postman](/performance-comparison/kong-vs-postman)Kong vs. Postman
      • [Kong vs. MuleSoft](/performance-comparison/kong-vs-mulesoft)Kong vs. MuleSoft
      • [Kong vs. Apigee](/performance-comparison/kong-vs-apigee)Kong vs. Apigee
      • [Kong vs. IBM](/performance-comparison/ibm-api-connect-vs-kong)Kong vs. IBM
      • GET STARTED
      • [Sign Up for Kong Konnect](/products/kong-konnect/register)Sign Up for Kong Konnect
      • [Documentation](https://developer.konghq.com/)Documentation
      • FOR PLATFORM TEAMS
      • [Developer Platform](/solutions/building-developer-platform)Developer Platform
      • [Kubernetes and Microservices](/solutions/build-on-kubernetes)Kubernetes and Microservices
      • [Observability](/solutions/observability)Observability
      • [Service Mesh Connectivity ](/solutions/service-mesh-connectivity)Service Mesh Connectivity
      • [Kafka Event Streaming](/solutions/kafka-stream-api-management)Kafka Event Streaming
      • FOR EXECUTIVES
      • [AI Connectivity](/ai-connectivity)AI Connectivity
      • [Open Banking](/solutions/open-banking)Open Banking
      • [Legacy Migration](/solutions/legacy-api-management-migration)Legacy Migration
      • [Platform Cost Reduction](/solutions/api-platform-consolidation)Platform Cost Reduction
      • [Kafka Cost Optimization](/solutions/reduce-kafka-cost)Kafka Cost Optimization
      • [API Monetization](/solutions/api-monetization)API Monetization
      • [AI Monetization](/solutions/ai-monetization)AI Monetization
      • [AI FinOps](/solutions/ai-cost-governance-finops)AI FinOps
      • FOR AI TEAMS
      • [Agent Gateway](/agent-gateway)Agent Gateway
      • [AI Governance](/solutions/ai-governance)AI Governance
      • [AI Security](/solutions/ai-security)AI Security
      • [AI Cost Control](/solutions/ai-cost-optimization-management)AI Cost Control
      • [Agentic Infrastructure](/solutions/agentic-ai-workflows)Agentic Infrastructure
      • [MCP Production](/solutions/mcp-production-and-consumption)MCP Production
      • [MCP Traffic Gateway](/solutions/mcp-governance)MCP Traffic Gateway
      • FOR DEVELOPERS
      • [Mobile App API Development](/solutions/mobile-application-api-development)Mobile App API Development
      • [GenAI App Development](/solutions/power-openai-applications)GenAI App Development
      • [API Gateway for Istio](/solutions/istio-gateway)API Gateway for Istio
      • [Decentralized Load Balancing](/solutions/decentralized-load-balancing)Decentralized Load Balancing
      • BY INDUSTRY
      • [Financial Services](/solutions/financial-services-industry)Financial Services
      • [Healthcare](/solutions/healthcare)Healthcare
      • [Higher Education](/solutions/api-platform-for-education-services)Higher Education
      • [Insurance](/solutions/insurance)Insurance
      • [Manufacturing](/solutions/manufacturing)Manufacturing
      • [Retail](/solutions/retail)Retail
      • [Software & Technology](/solutions/software-and-technology)Software & Technology
      • [Transportation](/solutions/transportation-and-logistics)Transportation
      • [See all Solutions](/solutions)See all Solutions
  • [Pricing](/pricing)Pricing
      • DOCUMENTATION
      • [Kong Konnect](https://developer.konghq.com/konnect/)Kong Konnect
      • [Kong Gateway](https://developer.konghq.com/gateway/)Kong Gateway
      • [Kong Mesh](https://developer.konghq.com/mesh/)Kong Mesh
      • [Kong AI Gateway](https://developer.konghq.com/ai-gateway/)Kong AI Gateway
      • [Kong Event Gateway](https://developer.konghq.com/event-gateway/)Kong Event Gateway
      • [Kong Insomnia](https://developer.konghq.com/insomnia/)Kong Insomnia
      • [Plugin Hub](https://developer.konghq.com/plugins/)Plugin Hub
      • EXPLORE
      • [Blog](/blog)Blog
      • [Learning Center](/blog/learning-center)Learning Center
      • [eBooks](/resources/e-book)eBooks
      • [Reports](/resources/reports)Reports
      • [Demos](/resources/demos)Demos
      • [Customer Stories](/customer-stories)Customer Stories
      • [Videos](/resources/videos)Videos
      • EVENTS
      • [API + AI Summit](/events/conferences/api-ai-summit)API + AI Summit
      • [Agentic Era World Tour](/agentic-era-world-tour)Agentic Era World Tour
      • [Webinars](/events/webinars)Webinars
      • [User Calls](/events/user-calls)User Calls
      • [Workshops](/events/workshops)Workshops
      • [Meetups](/events/meetups)Meetups
      • [See All Events](/events)See All Events
      • FOR DEVELOPERS
      • [Get Started](https://developer.konghq.com/)Get Started
      • [Community](/community)Community
      • [Certification](/academy/certification)Certification
      • [Training](https://education.konghq.com)Training
      • COMPANY
      • [About Us](/company/about-us)About Us
      • [We're Hiring!](/company/careers)We're Hiring!
      • [Press Room](/company/press-room)Press Room
      • [Contact Us](/company/contact-us)Contact Us
      • [Kong Partner Program](/partners)Kong Partner Program
      • [Enterprise Support Portal](https://support.konghq.com/s/)Enterprise Support Portal
      • [Documentation](https://developer.konghq.com/?_gl=1*tphanb*_gcl_au*MTcxNTQ5NjQ0MC4xNzY5Nzg4MDY0LjIwMTI3NzEwOTEuMTc3MzMxODI2MS4xNzczMzE4MjYw*_ga*NDIwMDU4MTU3LjE3Njk3ODgwNjQ.*_ga_4JK9146J1H*czE3NzQwMjg1MjkkbzE4OSRnMCR0MTc3NDAyODUyOSRqNjAkbDAkaDA)Documentation
  • [](/search)
  • [Login](https://cloud.konghq.com/login)Login
  • [Book Demo](/contact-sales)Book Demo
  • [Get Started](/products/kong-konnect/register)Get Started
[Blog](/blog)Blog
  • [AI Gateway](/blog/tag/ai-gateway)AI Gateway
  • [AI Security](/blog/tag/ai-security)AI Security
  • [AIOps](/blog/tag/aiops)AIOps
  • [API Security](/blog/tag/api-security)API Security
  • [API Gateway](/blog/tag/api-gateway)API Gateway
|
    • [API Management](/blog/tag/api-management)API Management
    • [API Development](/blog/tag/api-development)API Development
    • [API Design](/blog/tag/api-design)API Design
    • [Automation](/blog/tag/automation)Automation
    • [Service Mesh](/blog/tag/service-mesh)Service Mesh
    • [Insomnia](/blog/tag/insomnia)Insomnia
    • [Event Gateway](/blog/tag/event-gateway)Event Gateway
    • [View All Blogs](/blog/page/1)View All Blogs
We're Entering the Age of AI Connectivity [Read more](/blog/news/the-age-of-ai-connectivity)Read moreProducts & Agents:
    • [Kong AI Gateway](/products/kong-ai-gateway)Kong AI Gateway
    • [Kong API Gateway](/products/kong-gateway)Kong API Gateway
    • [Kong Event Gateway](/products/event-gateway)Kong Event Gateway
    • [Kong Metering & Billing](/products/usage-based-metering-and-billing)Kong Metering & Billing
    • [Kong Insomnia](/products/kong-insomnia)Kong Insomnia
    • [Kong Konnect](/products/kong-konnect)Kong Konnect
  • [Documentation](https://developer.konghq.com)Documentation
  • [Book Demo](/contact-sales)Book Demo
  1. Home
  2. Blog
  3. Engineering
  4. Terraform Your Way to the Cloud with Konnect Dedicated Cloud Gateways
[Engineering](/blog/engineering)Engineering
April 16, 2025
4 min read

# 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!

Youtube thumbnail
**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

This year is the year of Kong [Dedicated Cloud Gateways](https://konghq.com/products/kong-konnect/features/dedicated-cloud-gateways)Dedicated Cloud Gateways. There, I said it! Kong’s Dedicated Cloud Gateways (DCGW) give you fully isolated, high-performance API gateways running on dedicated infrastructure. No noisy neighbors, no shared tenancy. Just your APIs, your traffic, and your control. That's huge! 

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.

## What it looks like in action

### Set up the Dedicated Cloud Control Plane

So here is the [link](https://github.com/DeclanPaulKeane/blog-dcgw-terraform.git)link to the Terraform code I’ve written. This is what the file structure should look like. Add your own `terraform.tfvars`:

.
├── auth.tf               # Auth and provider block to authenticate with Konnect
├── control-plane.tf      # Control plane + gateway setup
├── service-config.tf     # Services, routes, rate limit plugin
├── variables.tf          # Input variables if needed later
├── terraform.tfvars      # For token injection via variable
└── outputs.tf            # Output useful resource IDs

What this will do is:

**1. Set up a connection to Konnect**

  • - Configures the Konnect Terraform Provider
  • - You can use a Personal Access token or System account token to authenticate

**2. Creates the API runtime infrastructure**

  • - Creates a new Cloud Control plane called “Global Control Plane”
  • - Configures gateways in AWS (East) and Azure (West)
  • - Enables Autopilot for autoscaling

**3. Define and secure the API:**

  • - Sets our Gateway Services to point to [https://httpbin.konghq.com](https://httpbin.konghq.com)https://httpbin.konghq.com
  • - Creates a route for /anything using GET requests.
  • -

    Applies a rate-limiting plugin to that route

    • - Allows max 5 requests per minute 

**All are managed by code.**

### Generate Konnect Authentication credentials

Create either a [Personal Access token](https://docs.konghq.com/konnect/org-management/access-token)Personal Access token or [System account token](https://docs.konghq.com/konnect/org-management/system-accounts/#main)System account token.

Update `terraform.tfvars` file with the token.

Note: I’m setting “`cloud_gateway_network_id`” in `control-plane.tf`. You can update this with your network IDs or create your own new network in Konnect. The easiest way to get the network ID is by calling the [admin api](https://docs.konghq.com/konnect/api/cloud-gateways/latest/#/operations/list-networks)admin api. 

### Spin up DCGW in AWS And Azure Using Terraform

Once in the GitHub directory, run:

$ terraform init
$ terraform plan
$ terraform apply

When prompted, type `yes`. Once it’s successfully, you should get a message like this:

Apply complete! Resources: 5 added, 0 changed, 0 destroyed.

Outputs:

control_plane_id = "b05a310c-658e-4c8c-8893-4f0fd6f76982"

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.

All from a single source of truth. Have more questions or need a real demo? [Let's chat!](https://konghq.com/contact-sales)Let's chat! Or learn more about Kong Konnect with Terraform [here](https://docs.konghq.com/konnect/reference/terraform/)here. 

## Unleash the power of APIs with Kong Konnect

[Learn More](/products/kong-konnect/)Learn More[Get a Demo](/contact-sales)Get a Demo
- [Kong Konnect](/blog/tag/kong-konnect)Kong Konnect- [Cloud](/blog/tag/cloud)Cloud- [Multi Cloud](/blog/tag/multi-cloud)Multi Cloud- [Automation](/blog/tag/automation)Automation

## More on this topic

_Webinars_

## Tech Talk A Developer's Guide to Multi-Cloud API Operations with Kong Konnect

_Webinars_

## Quarterly Platform Updates & Roadmap Webinar

## See Kong in action

Accelerate deployments, reduce vulnerabilities, and gain real-time visibility. 

[Get a Demo](/contact-sales)Get a Demo
**Topics**
- [Kong Konnect](/blog/tag/kong-konnect)Kong Konnect- [Cloud](/blog/tag/cloud)Cloud- [Multi Cloud](/blog/tag/multi-cloud)Multi Cloud- [Automation](/blog/tag/automation)Automation
Declan Keane
Senior Solutions Engineer, Kong

Recommended posts

# Automating Agreement Workflows with Kong Konnect and Docusign for Developers

[Engineering](/blog)EngineeringApril 16, 2026

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

Paige Rossi
[](https://konghq.com/blog/engineering/automating-agreement-workflows-kong-konnect-and-docusign-for-developers)

# Configuring Kong Dedicated Cloud Gateways with Managed Redis in a Multi-Cloud Environment

[Engineering](/blog)EngineeringMarch 12, 2026

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

Hugo Guerrero
[](https://konghq.com/blog/engineering/dedicated-cloud-gateways-managed-redis-multi-cloud)

# Kong Konnect Dedicated Cloud Gateways Add Azure Support

[Product Releases](/blog)Product ReleasesSeptember 11, 2024

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

Josh Wigginton
[](https://konghq.com/blog/product-releases/dedicated-cloud-gateways-azure-support)

# Kong Simplifies Multicloud Cloud Gateways with Managed Redis Cache

[Product Releases](/blog)Product ReleasesMarch 12, 2026

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

Amit Shah
[](https://konghq.com/blog/product-releases/multicloud-cloud-gateways-managed-redis-cache)

# Kong Konnect is now available on the Google Cloud Marketplace

[Engineering](/blog)EngineeringJanuary 8, 2024

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

Erin Choi
[](https://konghq.com/blog/engineering/konnect-google-cloud-marketplace)

# Use ChatGPT to Develop a SOAP/XML Custom Kong Konnect Plugin

[Engineering](/blog)EngineeringAugust 1, 2023

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

Jerome Guillaume
[](https://konghq.com/blog/engineering/chatgpt-soap-xml-kong-plugin)

# Enabling Multi-Region for Kong Konnect Cloud

[Engineering](/blog)EngineeringOctober 5, 2022

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

Nick Anderson
[](https://konghq.com/blog/engineering/enabling-multi-region-for-kong-konnect-cloud)

## Ready to see Kong in action?

Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.

[Get a Demo](/contact-sales)Get a Demo

## step-0

  • ## Company

    • [About Kong](/company/about-us)About Kong
    • [Customers](/customer-stories)Customers
    • [Careers](/company/careers)Careers
    • [Press](/company/press-room)Press
    • [Events](/events)Events
    • [Contact](/company/contact-us)Contact
    • [Pricing](/pricing)Pricing
      • Terms
      • Privacy
      • Trust and Compliance
  • ## Platform

    • [Kong AI Gateway](/products/kong-ai-gateway)Kong AI Gateway
    • [Kong Konnect](/products/kong-konnect)Kong Konnect
    • [Kong Gateway](/products/kong-gateway)Kong Gateway
    • [Kong Event Gateway](/products/event-gateway)Kong Event Gateway
    • [Kong Insomnia](/products/kong-insomnia)Kong Insomnia
    • [Documentation](https://developer.konghq.com)Documentation
    • [Book Demo](/contact-sales)Book Demo
  • ## Compare

    • [AI Gateway Alternatives](/performance-comparison/ai-gateway-alternatives)AI Gateway Alternatives
    • [Kong vs Apigee](/performance-comparison/kong-vs-apigee)Kong vs Apigee
    • [Kong vs IBM](/performance-comparison/ibm-api-connect-vs-kong)Kong vs IBM
    • [Kong vs Postman](/performance-comparison/kong-vs-postman)Kong vs Postman
    • [Kong vs Mulesoft](/performance-comparison/kong-vs-mulesoft)Kong vs Mulesoft
  • ## Explore More

    • [Open Banking API Solutions](/solutions/open-banking)Open Banking API Solutions
    • [API Governance Solutions](/solutions/api-governance)API Governance Solutions
    • [Istio API Gateway Integration](/solutions/istio-gateway)Istio API Gateway Integration
    • [Kubernetes API Management](/solutions/build-on-kubernetes)Kubernetes API Management
    • [API Gateway: Build vs Buy](/campaign/secure-api-scalability)API Gateway: Build vs Buy
    • [Kong vs Apigee](/performance-comparison/kong-vs-apigee)Kong vs Apigee
  • ## Open Source

    • [Kong Gateway](https://developer.konghq.com/gateway/install/)Kong Gateway
    • [Kuma](https://kuma.io/)Kuma
    • [Insomnia](https://insomnia.rest/)Insomnia
    • [Kong Community](/community)Kong Community

Kong enables the connectivity layer for the agentic era – securely connecting, governing, and monetizing APIs and AI tokens across any model or cloud.

  • English
  • Japanese
  • Frenchcoming soon
  • Spanishcoming soon
  • Germancoming soon
© Kong Inc. 2026
Interaction mode