A Terraform module to create an Amazon Web Services (AWS) Lambda based Tegola vector tile service.
module "tegola" {
source = "github.com/azavea/terraform-tegola-lambda?ref=develop"
function_archive_path = "${path.module}/../tegola_lambda.zip"
function_timeout_in_sec = "10"
function_memory_in_mb = "128"
database_hostname = "database.service.tegola.internal"
database_name = "tegola"
database_username = "tegola"
database_password = "tegola"
s3_cache_bucket = "tegola-cache"
vpc_id = "vpc-20f74844"
subnet_ids = [...]
domain_name = "tegola.azavea.com"
certificate_arn = "arn:aws:acm..."
project = "Something"
environment = "Staging"
}vpc_id- ID of VPC meant to house the Lambda execution environmentsubnet_ids- A list of subnet IDs to launch function instanceslog_group_retention_in_days- CloudWatch Log group retention period in days (default:30)function_archive_path- Local file system path for Tegola archive (must containconfig.toml)function_timeout_in_sec- Function timeout in seconds (default:10)function_memory_in_mb- Function memory in megabytes (default:128)s3_cache_bucket- S3 bucket used for Tegola cachingdatabase_hostname- PostGIS enabled PostgreSQL hostnamedatabase_port- PostgreSQL port (default:5432)database_name- PostgreSQL database namedatabase_username- PostgreSQL usernamedatabase_password- PostgreSQL passwordcertificate_arn- Amazon Resource Name (ARN) for a TLS certificate to associate with API Gatewaydomain_name- Domain name to associate with API Gatewayproject- Name of project for Tegola (default:Unknown)environment- Name of environment Tegola is targeting (default:Unknown)
function_service_role_name- Function IAM role namefunction_service_role_arn- Function IAM role ARNfunction_security_group_id- Function security group IDdomain_name- Domain name associated with API Gatewaycloudfront_domain_name- CloudFront distribution domain name associated with API Gatewaycloudfront_zone_id- CloudFront distribution zone ID associated with API Gateway