01
One distribution
Put the public face of the application in one place.
Component 15
The public edge for private origins: distribution, certificate, WAF, and logging.
Status
Available component
Deployment scope
Global edge
Inputs in, outputs out. Illustrative wiring, not a standalone deployment.
Supply one or more VPC origin ids, an ACM certificate in us-east-1 when using aliases, and a log bucket when logging is on. Configure provider requirements and credentials in your root module; check the documentation for all required inputs and version changes.
module "frontdoor" {
source = "pomo-studio/cloudfront-frontdoor/aws"
version = "~> 0.1"
name = "orders"
aliases = ["orders.example.com"]
deployments = {
blue = {
vpc_origin_id = module.origin_blue.id
domain_name = aws_lb.blue.dns_name
is_default = true
}
green = {
vpc_origin_id = module.origin_green.id
domain_name = aws_lb.green.dns_name
}
}
}Key inputs
Useful outputs
01
Put the public face of the application in one place.
02
Key the cache on the deployment so promoted responses are fresh.
03
Attach a web ACL you already manage.
Serve a private backend through CloudFront without exposing it to the internet.
Shift traffic between two backend deployments at the edge, with canary weighting and cookie pinning.
Built with