CloudFront Distribution
Global CDN edge network.
Configuration
Section titled “Configuration”| Setting | Type | Required | Default |
|---|---|---|---|
| Distribution name | Text | Yes | — |
| Comment | Text | — | — |
| Alias domains (CNAMEs) | List | — | — |
| Enabled | Toggle | — | true |
| IPv6 enabled | Toggle | — | 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 object | Text | — | index.html |
| WAF Web ACL ID | Text | — | — |
| Geo restriction Options: None, Whitelist, Blacklist | Choice | — | none |
| Geo restriction countries | List | — | — |
| 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 cert | Toggle | — | false |
| Logging S3 bucket | Text | — | — |
| Logging prefix | Text | — | — |
| Include cookies in logs | Toggle | — | false |
| Origin domain name | Text | — | — |
| Origin path | Text | — | — |
| Tags | Key–value | — | — |
Connections
Section titled “Connections”| Socket | Direction | Accepts | Terraform arg |
|---|---|---|---|
| Viewer traffic | Input | any | — |
| Originmulti | Input | aws.s3, aws.alb, aws.apigateway-rest, aws.apigateway-http | — |
| WAF Web ACL | Input | aws.waf-web-acl | web_acl_id |
| ACM certificate | Input | aws.acm-certificate | viewer_certificate.acm_certificate_arn |
| Viewers | Output | any | — |