cf
CloudFront
NetworkingAWS
General
General information about the service.
Chat
Powered by AITalk 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 Documentation
terraform
1resource "aws_cloudfront_distribution" "main" {2 origin {3 domain_name = aws_s3_bucket.main.bucket_regional_domain_name4 origin_id = "S3Origin"5 }6 enabled = true7 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.