Terraform module which creates AWS CloudFront resources as a reverse proxy by Terraform AWS provider.
module "reverse_proxy" {
source = "github.com/somleng/terraform-aws-cloudfront-reverse-proxy"
host = "your-domain.example.com"
origin = "your-domain.app.somleng.org"
zone_id = aws_route53_zone.example_com.zone_id # Optional. Leave blank if not using route53.
certificate_arn = "existing-certificate-arn" # Optional. Leave blank to create a new certificate.
}
The software is available as open source under the terms of the MIT License.