Skip to main content

CloudFront Distribution

Amazon CloudFront is a content delivery network (CDN) service that securely delivers data, videos, applications, and APIs to customers globally with low latency and high transfer speeds. CloudFront provides a way to distribute content from an edge location closer to the requester, thereby improving performance. For more detailed information, consult the official Amazon CloudFront documentation.

Terraform Mappings:

  • aws_cloudfront_distribution.arn

Supported Methods​

  • GET: Get a distribution by ID
  • LIST: List all distributions
  • SEARCH: Search distributions by ARN

cloudfront-key-group​

A CloudFront key group is related to CloudFront distributions in that it contains public keys, which can be used to verify signed URLs or cookies allowing access to restricted content in the distribution.

cloudfront-continuous-deployment-policy​

This policy is used with CloudFront distributions to manage continuous deployments, enabling the management of different versions or stages of your application seamlessly through CloudFront.

cloudfront-cache-policy​

Cache policies are associated with CloudFront distributions to determine how resources are cached, including defining the TTL (Time to Live), cache keys, and other caching behaviours.

cloudfront-function​

CloudFront functions are serverless functions associated with CloudFront distributions, allowing for lightweight customisation of content at the edge before it is delivered to the user.

cloudfront-origin-request-policy​

Origin request policies determine the headers, query strings, and cookies CloudFront includes in requests that it sends to your origin, related to distributions by customising cache behaviour.

cloudfront-realtime-log-config​

Real-time log configurations are related to CloudFront distributions by enabling near real-time logging of requests, allowing for monitoring and analysis.

cloudfront-response-headers-policy​

Response headers policies are linked to distributions to dictate which HTTP headers CloudFront adds to responses it sends to viewers, influencing security and content delivery configurations.

dns​

DNS is integral to CloudFront distributions as it resolves the domain names used by CloudFront, routing traffic to the appropriate distribution edge location.

lambda-function​

Lambda functions can be triggered by CloudFront distributions to execute custom code in response to requests, providing dynamic content and functionality enhancement through Lambda@Edge.

s3-bucket​

S3 buckets are commonly linked to CloudFront distributions as an origin source for serving static content (e.g., media files, documents) through the CDN.