-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.tf
More file actions
113 lines (99 loc) · 2.75 KB
/
test.tf
File metadata and controls
113 lines (99 loc) · 2.75 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
module "test_site" {
source = "./modules/phlask-baseline-resources"
env_name = "test"
custom_error_response = [
{
error_caching_min_ttl = 10
error_code = 404
response_code = 200
response_page_path = "/index.html"
}
]
default_cache_behavior = {
default_ttl = 86400
max_ttl = 86400
function_association = [
{
event_type = "viewer-request"
function_arn = aws_cloudfront_function.react-url-rewrite.arn
}
]
lambda_function_association = [
{
event_type = "origin-response"
include_body = false
lambda_arn = aws_lambda_function.test_page_redirect.qualified_arn
}
]
}
ordered_cache_behavior = [
{
path_pattern = "/"
allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]
forwarded_values = [
{
headers = []
cookies = {
forward = "none"
}
}
]
lambda_function_association = [
{
event_type = "viewer-request"
include_body = false
lambda_arn = aws_lambda_function.test_page_list.qualified_arn
}
]
},
{
path_pattern = "testResults/*"
allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]
forwarded_values = [
{
headers = []
cookies = {
forward = "none"
}
}
]
lambda_function_association = [
{
event_type = "viewer-request"
include_body = false
lambda_arn = aws_lambda_function.test_results_display.qualified_arn
}
]
},
{
path_pattern = "submit-image"
allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]
cache_policy_id = data.aws_cloudfront_cache_policy.caching_optimized.id
lambda_function_association = [
{
event_type = "viewer-request"
include_body = false
lambda_arn = aws_lambda_function.image_submission_handler.qualified_arn
}
]
},
{
path_pattern = "tap-images/*"
allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]
cache_policy_id = data.aws_cloudfront_cache_policy.caching_optimized.id
origin_request_policy_id = data.aws_cloudfront_origin_request_policy.s3_origin.id
target_origin_id = local.images_origin_id
}
]
common_domain = var.common_domain
origin_access_control_id_images = aws_cloudfront_origin_access_control.images.id
phlask_images_bucket_name = aws_s3_bucket.images.id
phlask_logs_bucket_name = aws_s3_bucket.logs.id
providers = {
aws.us-east-1 = aws.us-east-1
}
}