-
Notifications
You must be signed in to change notification settings - Fork 0
/
video-cdn.tf
34 lines (31 loc) · 1.54 KB
/
video-cdn.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module "video-cdn" {
source = "git::https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn.git?ref=0.85.0"
name = "video"
namespace = module.label.namespace
stage = module.label.stage
tags = module.label.tags
extra_origin_attributes = [""]
aliases = [var.dns_alias_name]
dns_alias_enabled = var.dns_alias_enabled
parent_zone_id = var.parent_zone_id
acm_certificate_arn = var.acm_certificate_arn
allowed_methods = var.allowed_methods
cached_methods = var.cached_methods
encryption_enabled = true
price_class = var.cloudfront_price_class
viewer_protocol_policy = "redirect-to-https"
origin_force_destroy = true
compress = true
website_enabled = false
forward_query_string = false
forward_cookies = "none"
min_ttl = "604800" //7 days
default_ttl = "604800" //7 days
forward_header_values = []
block_origin_public_access_enabled = true
trusted_key_groups = [var.trusted_key_group] //for Signed URL's
response_headers_policy_id = var.response_headers_policy_id
cache_policy_id = var.cache_policy_id
origin_request_policy_id = var.origin_request_policy_id
additional_bucket_policy = var.additional_bucket_policy
}