Type: kong-api-gateway
The kong-api-gateway provisioner is used to provisioner Packer builds.
Required
sslCertSource
(string) - The path to the local SSL certificate file to upload to the machine. The path can be absolute or relative. If it is relative, it is relative to the working directory when Packer is executed.sslCertKeySource
(string) - The path to the local SSL certificate key file to upload to the machine. The path can be absolute or relative. If it is relative, it is relative to the working directory when Packer is executed.kongApiGatewayDomain
(string) - the SSL-enabled domain that will serve the various ports of Kong gateway
Optional
homeDir
(string) - The$Home
directory in AMI image; default to/home/ubuntu
source "amazon-ebs" "kong" {
ami_name = "my-kong-api-gateway-ami"
force_deregister = "true"
force_delete_snapshot = "true"
skip_create_ami = "false"
instance_type = "t2.large"
launch_block_device_mappings {
device_name = "/dev/sda1"
volume_size = 8
volume_type = "gp2"
delete_on_termination = true
}
region = "us-east-1"
source_ami_filter {
filters = {
name = "ubuntu/images/*ubuntu-*-22.04-amd64-server-*"
root-device-type = "ebs"
virtualization-type = "hvm"
}
most_recent = true
owners = ["099720109477"]
}
ssh_username = "ubuntu"
}
build {
name = "install-kong"
sources = [
"amazon-ebs.kong"
]
provisioner "hashicorp-aws-kong-api-gateway-provisioner" {
homeDir = "/home/ubuntu"
sslCertSource = "/abs/or/rel/path/to/ssl-cert-file"
sslCertKeySource = "/abs/or/rel/path/to/ssl-cert-key-file"
kongApiGatewayDomain = "mykongdomain.com"
}
}