{"id":29177730,"url":"https://github.com/totvs/aws_cloudfront","last_synced_at":"2026-02-03T06:01:28.339Z","repository":{"id":246589873,"uuid":"804932275","full_name":"totvs/aws_cloudfront","owner":"totvs","description":"Terraform module that creates an AWS Cloudfront.","archived":false,"fork":false,"pushed_at":"2025-10-28T20:32:47.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-10-28T20:32:56.349Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/totvs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-23T14:50:30.000Z","updated_at":"2025-10-28T20:32:51.000Z","dependencies_parsed_at":"2024-06-28T22:23:03.471Z","dependency_job_id":"42772e90-dea4-42ea-b31a-3cd3f22b436c","html_url":"https://github.com/totvs/aws_cloudfront","commit_stats":null,"previous_names":["totvs/aws_cloudfront"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/totvs/aws_cloudfront","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Faws_cloudfront","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Faws_cloudfront/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Faws_cloudfront/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Faws_cloudfront/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/totvs","download_url":"https://codeload.github.com/totvs/aws_cloudfront/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Faws_cloudfront/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29035221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T02:28:16.591Z","status":"ssl_error","status_checked_at":"2026-02-03T02:27:48.904Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-01T18:07:52.806Z","updated_at":"2026-02-03T06:01:28.314Z","avatar_url":"https://github.com/totvs.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws_cloudfront\n\nTerraform module that creates an AWS Cloudfront.\n\n## Inputs\n\n```hcl\nmodule \"aws_cloudfront\" {\n  source = \"aws_cloudfront\"\n  \n  cloudfront_enable   = # Whether the distribution is enabled to accept end user requests for content\n  default_root_object = # Object that you want CloudFront to return (for example, index.html) when an end user requests the root URL\n  aliases             = # Extra CNAMEs (alternate domain names), if any, for this distribution\n  is_ipv6_enabled     = # Whether the IPv6 is enabled for the distribution\n  \n  custom_error_response = {\n    error_caching_min_ttl = # Minimum amount of time you want HTTP error codes to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated\n    error_code            = # 4xx or 5xx HTTP status code that you want to customize\n    response_code         = # HTTP status code that you want CloudFront to return with the custom error page to the viewer.\n    response_page_path    = # Path of the custom error page\n  }\n\n  default_cache_behavior = {\n    allowed_methods  = # Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin\n    cached_methods   = # Controls whether CloudFront caches the response to requests using the specified HTTP methods\n    target_origin_id = # Value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior\n\n    compress               = # Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header\n    viewer_protocol_policy = # Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern\n    min_ttl                = # Minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated\n    default_ttl            = # Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an Cache-Control max-age or Expires header\n    max_ttl                = # Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated\n\n    forwarded_values = {\n      query_string = # Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior\n      cookies = {\n        forward = # Whether you want CloudFront to forward cookies to the origin that is associated with this cache behavior\n      }\n    }\n  }\n\n  origin = {\n    domain_name = # DNS domain name of either the S3 bucket, or web site of your custom origin\n    origin_id   = # Unique identifier for the origin\n    custom_origin_config { # Required when using S3 Bucket Websites\n      http_port              = # HTTP Port for custom origin\n      https_port             = # HTTPS Port for custom origin\n      origin_protocol_policy = # Protocol policy to use such as \"http-only\"\n      origin_ssl_protocols   = # SSL protocols to use such as [\"TLSv1\", \"TLSv1.1\", \"TLSv1.2\"]\n    } \n  }\n\n  restrictions = {\n    geo_restriction = {\n      restriction_type = # Method that you want to use to restrict distribution of your content by country: none, whitelist, or blacklist\n      locations        = # ISO 3166-1-alpha-2 codes for which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). If the type is specified as none an empty array can be used\n    }\n  }\n\n  viewer_certificate = {\n    cloudfront_default_certificate = # true if you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name for your distribution. Specify this, acm_certificate_arn, or iam_certificate_id\n    acm_certificate_arn            = # ARN of the AWS Certificate Manager certificate that you wish to use with this distribution. Specify this, cloudfront_default_certificate, or iam_certificate_id\n    ssl_support_method             = # How you want CloudFront to serve HTTPS requests. One of vip or sni-only\n    minimum_protocol_version       = # Minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections\n  }\n}\n```\n\nExample\n```hcl\nmodule \"aws_cloudfront\" {\n  source = \"aws_cloudfront\"\n  \n  cloudfront_enable   = true\n  default_root_object = index.html\n  aliases             = [\"example2.io\",example3.io]\n  is_ipv6_enabled     = true\n  \n  custom_error_response = {\n    error_caching_min_ttl = 10\n    error_code            = 404\n    response_code         = 200\n    response_page_path    = \"/custom_404.html\"\n  }\n\n  default_cache_behavior = {\n    allowed_methods  = [\"DELETE\", \"GET\", \"HEAD\", \"OPTIONS\", \"PATCH\", \"POST\", \"PUT\"]\n    cached_methods   = [\"GET\", \"HEAD\"]\n    target_origin_id = origin-resource-name\n\n    compress               = true\n    viewer_protocol_policy = \"redirect-to-https\"\n    min_ttl                = 0\n    default_ttl            = 3600\n    max_ttl                = 86400\n\n    forwarded_values = {\n      query_string = false\n      cookies = {\n        forward = \"none\"\n      }\n    }\n  }\n\n  origin = {\n    domain_name = example.io\n    origin_id   = origin-resource-name\n    custom_origin_config {\n      http_port              = \"80\"\n      https_port             = \"443\"\n      origin_protocol_policy = \"http-only\"\n      origin_ssl_protocols   = [\"TLSv1\", \"TLSv1.1\", \"TLSv1.2\"]\n    }\n  } \n\n  restrictions = {\n    geo_restriction = {\n      restriction_type = \"whitelist\"\n      locations        = [\"BR\", \"MX\", \"AR\", \"US\", \"CA\", \"GB\", \"JP\", \"CL\"]\n    }\n  }\n\n  viewer_certificate = {\n    cloudfront_default_certificate = false\n    acm_certificate_arn            = \"arn:aws:acm:us-east-1:XXXXXXXXXXXXXXXX:certificate/YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY\"\n    ssl_support_method             = \"sni-only\"\n    minimum_protocol_version       = \"TLSv1.2_2021\"\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotvs%2Faws_cloudfront","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotvs%2Faws_cloudfront","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotvs%2Faws_cloudfront/lists"}