This repository contains a Terraform provider for Kong Gateway.
This provider can manage the following resources:
- Service
- Route
- Plugins
- Consumers
- Consumer Groups
- Consumer Group Members
- Credentials
- Basic Auth
- Key Auth
- JWT
- HMAC Auth
- ACL
- Upstream
- Target
- Vault
- Certificate
- CA Certificate
- SNI
- Key
- Key Set
The provider can be installed from the Terraform registry. Before using the provider, you must configure a server_url
.
terraform {
required_providers {
kong-gateway = {
source = "kong/kong-gateway"
}
}
}
provider "kong-gateway" {
server_url = "http://localhost:8001"
# admin_token = "your_rbac_token_here__enterprise_only"
}
The examples directory contains sample usage for all supported resources. For a full list of supported parameters for each resource, see the provider documentation.