cf

CloudFront

NetworkingAWS
General

General information about the service.

Description

Amazon CloudFront is a fast content delivery network (CDN) service for delivering data globally with low latency.

Service Namespace

AWS::CloudFront::Distribution

ARN Pattern

arn:aws:cloudfront::{account}:distribution/{distribution-id}

References

Chat

Powered by AI

Talk to this service to learn more about it.

Suggested questions:

Naming

The conventions, rules, and restrictions for naming this service.

Naming Convention

cf-

Length

1-255

Valid Characters

Letters, numbers, hyphens

Scope

global

Code

Deploy your infrastructure as code using your preferred tooling.

Official DocumentationTerraform
terraform
1resource "aws_cloudfront_distribution" "main" {
2 origin {
3 domain_name = aws_s3_bucket.main.bucket_regional_domain_name
4 origin_id = "S3Origin"
5 }
6 enabled = true
7 default_cache_behavior {
8 allowed_methods = ["GET", "HEAD"]
9 cached_methods = ["GET", "HEAD"]
10 target_origin_id = "S3Origin"
11 viewer_protocol_policy = "redirect-to-https"
12 forwarded_values { query_string = false; cookies { forward = "none" }}
13 }
14 restrictions { geo_restriction { restriction_type = "none" }}
15 viewer_certificate { cloudfront_default_certificate = true }
16}
Utilities

Utilities to support app deployment or configuration.