kong-gateway

dwp/kong-gateway/aws

Terraform Module HCL AWS
Install
module "kong-gateway" {
source = "dwp/kong-gateway/aws"
version = "0.0.81"
}
plain text: /constructs/tfmod-dwp-kong-gateway-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-kong-gateway Terraform module for provisioning Kong Gateway in AWS on either ECS or EC2. The module will also, optionally, create an RDS database cluster, subnets, and security groups. The cloud-init script (Amazon Linux and Ubunutu) will install either Kong community or enterprise edition (depending on ee_creds_ssm_param variable value) The module can deploy Kong Gateway in several ways: - Embedded - Hybrid Control Plane - Hybrid Data Plane :warning: The module is currently only tested for Hybrid control planes and data planes. Use of embedded has not been tested. Status Maturing - Some scenarios tested, but not all. Module in use, but only for a limited number of configurations. Looking for more consumers to raise issues they find with additional scenarios. Examples Example

Inputs (50)
NameTypeDescriptionDefault
vpc_cidr_blockstringThe CIDR block in use by the kong vpc required
deployment_typestringDefine the deployment type of either `ec2` or `ecs` required
regionstringThe aws region to access the SSM config items required
kong_database_configobject({ name = string(Optional) Configuration for the kong database{ "name": "kong", "password": null,
root_block_sizenumber(Optional) The size of the root block device to attach to each instance20
rules_with_source_security_groupsmap(object({ type (Optional) Security rules for the Kong instance that have another security group{}
health_check_grace_periodnumber(Optional) Time (in seconds) after instance comes into service before checking h300
kong_ssl_urisobject({ protocol (Optional) Object containing the ssl uris for kong, e.g. load balancer dns names{ "admin_api_uri": "http://localhost:8
min_healthy_percentagenumber(Optional) The minimum percentage of healthy instances in Auto Scaling Group dur30
associate_public_ip_addressbool(Optional) Should our instances be given public IP addressesfalse
kong_clear_databasebool(Optional) If set to true then the database contents will be replaced when contrfalse
ssl_certstring(Optional) Secrets Manager or Parameter Store ARN of the Certificate used to secnull
clustering_endpointstring(Optional) Address of the control plane node from which configuration updates winull
security_group_idslist(string)(Optional) A list of security group ID's to associate with the instances[]
tags_asgmap(string)(Optional) Tags to apply to Auto Scaling Group resources{}
access_log_formatstring(Optional) Log location and format to be defined for the access logs"logs/access.log"
kong_major_versionnumber(Optional) Used to define which Kong major version to use2
lua_ssl_certstring(Optional) Secrets Manager or Parameter Store ARN of the Certificate used for Lunull
kong_admin_gui_urlstring(Optional) The Admin GUI URL of the Kong Manager.""
ami_operating_systemstring(Optional) Operating system present on supplied `ami_id` AMI. Supported values a"ubuntu"
tagsmap(string)(Optional) Tags to apply to AWS resources, except Auto Scaling Group{}
min_capacitynumber(Optional) Minimum Capacity for the Gateway ECS Task Definition1
log_groupstring(Optional) The Log Group for ECS to report out tonull
… and 10 more inputs
Outputs (9)
security_groups — List of Security Groups used by Kong.
ecs_task_definition_outputs — Full resource details for the ECS Task definition
db_outputs — The DNS address and database name of the RDS instance, and security group ID from the database modul
launch_template_outputs — Full `aws_launch_template` resource details for the launch configuration created for Kong.
private_subnet_azs — List of availability zones used for the private subnets, either supplied in the optional `supplied i
private_subnet_ids — List of private subnet IDs. These are either supplied in the optional `private_subnets` input variab
kong_iam_role — IAM Role used by the ECS Task for the Gateway
ecs_service_outputs — Full resource details for the ECS Service
asg_outputs — Full `aws_autoscaling_group` resource details for the autoscaling group created for Kong.
Topics & Tags
hacktoberfestgovuk
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.81
Cloud AWS
★ Stars10
Forks8
Total downloads126.2k
Inputs50
Outputs9
Examples5
Submodules5
LicenseMIT
Namespacedwp
Updated