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
EnabledToggletrue
IPv6 enabledToggletrue
HTTP version
Options: HTTP/1.1, HTTP/2, HTTP/2 + 3
Choicehttp2and3
Price class
Options: All edge locations, NA + EU + Asia, NA + EU only
ChoicePriceClass_All
Default root objectTextindex.html
WAF Web ACL IDText
Geo restriction
Options: None, Whitelist, Blacklist
Choicenone
Geo restriction countriesList
Viewer protocol policy
Options: Redirect to HTTPS, HTTPS only, Allow all
Choiceredirect-to-https
Min TLS version
Options: TLSv1, TLSv1.1, TLSv1.2 (2018), TLSv1.2 (2019), TLSv1.2 (2021)
ChoiceTLSv1.2_2021
ACM certificate ARN (us-east-1)Text
Use default *.cloudfront.net certTogglefalse
Logging S3 bucketText
Logging prefixText
Include cookies in logsTogglefalse
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