Skip to content

CloudFront Distribution

Global CDN edge network.

edge
category
21
settings
4
inputs
1
outputs
SettingTypeRequiredDefault
Distribution nameTextYes—
CommentText——
Alias domains (CNAMEs)List——
EnabledToggle—true
IPv6 enabledToggle—true
HTTP version
Options: HTTP/1.1, HTTP/2, HTTP/2 + 3
Choice—http2and3
Price class
Options: All edge locations, NA + EU + Asia, NA + EU only
Choice—PriceClass_All
Default root objectText—index.html
WAF Web ACL IDText——
Geo restriction
Options: None, Whitelist, Blacklist
Choice—none
Geo restriction countriesList——
Viewer protocol policy
Options: Redirect to HTTPS, HTTPS only, Allow all
Choice—redirect-to-https
Min TLS version
Options: TLSv1, TLSv1.1, TLSv1.2 (2018), TLSv1.2 (2019), TLSv1.2 (2021)
Choice—TLSv1.2_2021
ACM certificate ARN (us-east-1)Text——
Use default *.cloudfront.net certToggle—false
Logging S3 bucketText——
Logging prefixText——
Include cookies in logsToggle—false
Origin domain nameText——
Origin pathText——
TagsKey–value——
SocketDirectionAcceptsTerraform arg
Viewer trafficInputany—
OriginmultiInputaws.s3, aws.alb, aws.apigateway-rest, aws.apigateway-http—
WAF Web ACLInputaws.waf-web-aclweb_acl_id
ACM certificateInputaws.acm-certificateviewer_certificate.acm_certificate_arn
ViewersOutputany—