This project shows how to automate Kong API Gateway management with Terraform.
- Terraform 0.11.0+
- Kong CE 0.14.0+ or EE 0.33.0+
- Terraform Provider Kong 1.7.0+
Kong Provider is not official Terraform provider. You need to download and locate the provider plugin manually.
$ wget https://github.com/kevholditch/terraform-provider-kong/releases/download/v1.7.0/terraform-provider-kong_1.7.0_darwin_amd64.zip
$ unzip -j terraform-provider-kong_1.7.0_darwin_amd64.zip terraform-provider-kong_v1.7.0 -d ~/.terraform.d/plugins/
$ git clone https://github.com/posquit0/demo-terraform-provider-kong
$ cd demo-terraform-provider-kong
$ terraform init
# If you use S3 backend
# $ cat <<EOF > ./backend.conf
# bucket = "terraform.apigateway.my-company.dev"
# key = "tfstate"
# region = "ap-northeast-2"
# encrypt = true
# EOF
# $ terraform init -backend-config ./backend.conf
$ cp terraform.tfvars.sample terraform.tfvars
# Configure variables
$ vi terraform.tfvars
$ terraform apply
$ terraform apply
Please use the issue tracker to report any bugs or ask feature requests.
Provided under the terms of the MIT License.
Copyright © 2018, Byungjin Park.