1
+ # TODO: Combine with fastly.tf so that we can layer the ngwaf stuff for testing
1
2
# terraform import fastly_service_vcl.cdn 1d1Bii4LcJ9joSaowpIdb3 && terraform show:
2
3
resource "fastly_service_vcl" "cdn" {
3
4
active_version = 140
@@ -9,7 +10,7 @@ resource "fastly_service_vcl" "cdn" {
9
10
http3 = false
10
11
id = " 1d1Bii4LcJ9joSaowpIdb3"
11
12
imported = false
12
- name = " www .python.org"
13
+ name = " test .python.org"
13
14
stale_if_error = false
14
15
stale_if_error_ttl = 43200
15
16
version_comment = null
@@ -20,11 +21,11 @@ resource "fastly_service_vcl" "cdn" {
20
21
name = " Generated_by_IP_block_list"
21
22
}
22
23
23
- backend {
24
+ backend { # TODO: add cabo stuffs
24
25
# At least one attribute in this block is (or was) sensitive,
25
26
# so its contents will not be displayed.
26
27
}
27
- backend {
28
+ backend { # TODO: unsure what this onewas, i think maybe lb?
28
29
# At least one attribute in this block is (or was) sensitive,
29
30
# so its contents will not be displayed.
30
31
}
@@ -52,13 +53,13 @@ resource "fastly_service_vcl" "cdn" {
52
53
condition {
53
54
name = " HSTS w/ subdomains"
54
55
priority = 10
55
- statement = " req.http.host == \" www .python.org\" "
56
+ statement = " req.http.host == \" test .python.org\" "
56
57
type = " RESPONSE"
57
58
}
58
59
condition {
59
60
name = " HSTS w/o subdomain"
60
61
priority = 10
61
- statement = " req.http.host == \" python.org\" "
62
+ statement = " req.http.host == \" test. python.org\" "
62
63
type = " RESPONSE"
63
64
}
64
65
condition {
@@ -88,23 +89,23 @@ resource "fastly_service_vcl" "cdn" {
88
89
condition {
89
90
name = " apex redirect"
90
91
priority = 10
91
- statement = " req.http.Host == \" python.org\" "
92
+ statement = " req.http.Host == \" test. python.org\" "
92
93
type = " RESPONSE"
93
94
}
94
95
condition {
95
96
name = " apex"
96
97
priority = 1
97
- statement = " req.http.host == \" python.org\" "
98
+ statement = " req.http.host == \" test. python.org\" "
98
99
type = " REQUEST"
99
100
}
100
101
101
102
domain {
102
103
comment = null
103
- name = " python.org"
104
+ name = " test. python.org"
104
105
}
105
106
domain {
106
107
comment = null
107
- name = " www .python.org"
108
+ name = " test .python.org"
108
109
}
109
110
110
111
gzip {
@@ -200,7 +201,7 @@ resource "fastly_service_vcl" "cdn" {
200
201
regex = null
201
202
request_condition = null
202
203
response_condition = " apex redirect"
203
- source = " \" https://www .python.org\" + req.url"
204
+ source = " \" https://test .python.org\" + req.url"
204
205
substitution = null
205
206
type = " response"
206
207
}
@@ -265,7 +266,7 @@ resource "fastly_service_vcl" "cdn" {
265
266
check_interval = 15000
266
267
expected_response = 200
267
268
headers = []
268
- host = " python.org"
269
+ host = " test. python.org"
269
270
http_version = " 1.1"
270
271
initial = 4
271
272
method = " HEAD"
@@ -276,17 +277,17 @@ resource "fastly_service_vcl" "cdn" {
276
277
window = 5
277
278
}
278
279
279
- logging_datadog {
280
+ logging_datadog { # TODO
280
281
# At least one attribute in this block is (or was) sensitive,
281
282
# so its contents will not be displayed.
282
283
}
283
284
284
- logging_s3 {
285
+ logging_s3 { # TODO
285
286
# At least one attribute in this block is (or was) sensitive,
286
287
# so its contents will not be displayed.
287
288
}
288
289
289
- logging_syslog {
290
+ logging_syslog { # TODO
290
291
# At least one attribute in this block is (or was) sensitive,
291
292
# so its contents will not be displayed.
292
293
}
@@ -307,7 +308,7 @@ resource "fastly_service_vcl" "cdn" {
307
308
feature_revision = 1
308
309
http_methods = " GET,PUT,TRACE,POST,HEAD,DELETE,PATCH,OPTIONS"
309
310
logger_type = " datadog"
310
- name = " python.org backends"
311
+ name = " test. python.org backends"
311
312
penalty_box_duration = 2
312
313
ratelimiter_id = " 6SnVeRHflsd9pTPPFvhYqX"
313
314
response_object_name = null
@@ -337,7 +338,7 @@ resource "fastly_service_vcl" "cdn" {
337
338
default_host = null
338
339
force_miss = false
339
340
force_ssl = true
340
- geo_headers = false
341
+ geo_headers = false # ! DEPRECATED
341
342
hash_keys = null
342
343
max_stale_age = 86400
343
344
name = " Default cache policy"
@@ -351,7 +352,7 @@ resource "fastly_service_vcl" "cdn" {
351
352
default_host = null
352
353
force_miss = false
353
354
force_ssl = false
354
- geo_headers = false
355
+ geo_headers = false # ! DEPRECATED
355
356
hash_keys = null
356
357
max_stale_age = 60
357
358
name = " Force Pass"
0 commit comments