terraform-aws-cloudfront-cdn — Cloud Posse Developer Hub

#1
namespace Namespace (e.g. cp or cloudposse) Yes cached_methods ["GET", "HEAD"] List of cached methods (e.g. GET, PUT, POST, DELETE, HEAD) No cache_behavior [] List of cache behaviors to implement No comment Managed by Terraform Comment for the origin access identity No compress false Compress content for web requests that include Accept-Encoding: gzip in the request header No default_root_object index.html Object that CloudFront return when requests the root URL No enabled true State of CloudFront No forward_cookies none Forward cookies to the origin that is associated with this cache behavior No forward_cookies_whitelisted_names [] List of forwarded cookies No forward_headers [] Specify headers that you want CloudFront to vary upon for this cache behavior. Specify * to include all headers. No forward_query_string false Forward query strings to the origin that is associated with this cache behavior No stage Stage (e.g. prod, dev, staging) Yes geo_restriction_locations [] List of country codes for which CloudFront either to distribute content (whitelist) or not distribute your content (blacklist) No geo_restriction_type none Method that use to restrict distribution of your content by country: none, whitelist, or blacklist No is_ipv6_enabled true State of CloudFront IPv6 No log_standard_transition_days 30 Number of days to persist in the standard storage tier before moving to the glacier tier No log_glacier_transition_days 60 Number of days to persist in the standard storage tier before moving to the infrequent access No log_expiration_days 90 Number of days after which to expunge the objects No log_include_cookies false Include cookies in access logs No log_prefix Path of logs in S3 bucket No min_ttl 0 Minimum amount of time that you want objects to stay in CloudFront caches No default_ttl 60 Default amount of time (in seconds) that an object is in a CloudFront cache No name Name (e.g. bastion or db) Yes max_ttl 31536000 Maximum amount of time (in seconds) that an object is in a CloudFront cache No price_class PriceClass_100 Price class for this distribution: PriceClass_All, PriceClass_200, PriceClass_100 No viewer_protocol_policy redirect-to-https Element to specify the protocol: allow-all, https-only, redirect-to-https No origin_path Element that causes CloudFront to request your content from a directory in your Amazon S3 bucket No origin_domain_name The DNS domain name of your custom origin (e.g. website) Yes origin_http_port 80 The HTTP port the custom origin listens on No origin_https_port 443 The HTTPS port the custom origin listens on No origin_keepalive_timeout 60 The Custom KeepAlive timeout, in seconds. By default, AWS enforces a limit of 60. But you can request an increase No origin_protocol_policy match-viewer The origin protocol policy to apply to your origin. One of http-only, https-only, or match-viewer No origin_read_timeout 60 The Custom Read timeout, in seconds. By default, AWS enforces a limit of 60. But you can request an increase No attributes [] Additional attributes (e.g. policy or role) No origin_ssl_protocols ["TLSv1", "TLSv1.1", "TLSv1.2"] The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS No parent_zone_id ID of the hosted zone to contain this record (or specify parent_zone_name) Yes parent_zone_name Name of the hosted zone to contain this record (or specify parent_zone_id) Yes tags {} Additional tags (e.g. map("BusinessUnit","XYZ") No acm_certificate_arn Existing ACM Certificate ARN No aliases [] List of aliases. CAUTION! Names MUSTN’T contain trailing . Yes custom_error_response [] List of one or more custom error response element maps No allowed_methods ["*"] List of allowed methods (e.g. GET, PUT, POST, DELETE, HEAD) for AWS CloudFront No

This is a companion discussion topic for the original entry at https://docs.cloudposse.com/terraform-modules/cdn/terraform-aws-cloudfront-cdn/