Skip to content

Commit ab14d51

Browse files
committed
chore: change names, prep for merger with ngwaf config, add todos
1 parent dc40030 commit ab14d51

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

infra/cdn.tf

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# TODO: Combine with fastly.tf so that we can layer the ngwaf stuff for testing
12
# terraform import fastly_service_vcl.cdn 1d1Bii4LcJ9joSaowpIdb3 && terraform show:
23
resource "fastly_service_vcl" "cdn" {
34
active_version = 140
@@ -9,7 +10,7 @@ resource "fastly_service_vcl" "cdn" {
910
http3 = false
1011
id = "1d1Bii4LcJ9joSaowpIdb3"
1112
imported = false
12-
name = "www.python.org"
13+
name = "test.python.org"
1314
stale_if_error = false
1415
stale_if_error_ttl = 43200
1516
version_comment = null
@@ -20,11 +21,11 @@ resource "fastly_service_vcl" "cdn" {
2021
name = "Generated_by_IP_block_list"
2122
}
2223

23-
backend {
24+
backend { # TODO: add cabo stuffs
2425
# At least one attribute in this block is (or was) sensitive,
2526
# so its contents will not be displayed.
2627
}
27-
backend {
28+
backend { # TODO: unsure what this onewas, i think maybe lb?
2829
# At least one attribute in this block is (or was) sensitive,
2930
# so its contents will not be displayed.
3031
}
@@ -52,13 +53,13 @@ resource "fastly_service_vcl" "cdn" {
5253
condition {
5354
name = "HSTS w/ subdomains"
5455
priority = 10
55-
statement = "req.http.host == \"www.python.org\""
56+
statement = "req.http.host == \"test.python.org\""
5657
type = "RESPONSE"
5758
}
5859
condition {
5960
name = "HSTS w/o subdomain"
6061
priority = 10
61-
statement = "req.http.host == \"python.org\""
62+
statement = "req.http.host == \"test.python.org\""
6263
type = "RESPONSE"
6364
}
6465
condition {
@@ -88,23 +89,23 @@ resource "fastly_service_vcl" "cdn" {
8889
condition {
8990
name = "apex redirect"
9091
priority = 10
91-
statement = "req.http.Host == \"python.org\""
92+
statement = "req.http.Host == \"test.python.org\""
9293
type = "RESPONSE"
9394
}
9495
condition {
9596
name = "apex"
9697
priority = 1
97-
statement = "req.http.host == \"python.org\""
98+
statement = "req.http.host == \"test.python.org\""
9899
type = "REQUEST"
99100
}
100101

101102
domain {
102103
comment = null
103-
name = "python.org"
104+
name = "test.python.org"
104105
}
105106
domain {
106107
comment = null
107-
name = "www.python.org"
108+
name = "test.python.org"
108109
}
109110

110111
gzip {
@@ -200,7 +201,7 @@ resource "fastly_service_vcl" "cdn" {
200201
regex = null
201202
request_condition = null
202203
response_condition = "apex redirect"
203-
source = "\"https://www.python.org\" + req.url"
204+
source = "\"https://test.python.org\" + req.url"
204205
substitution = null
205206
type = "response"
206207
}
@@ -265,7 +266,7 @@ resource "fastly_service_vcl" "cdn" {
265266
check_interval = 15000
266267
expected_response = 200
267268
headers = []
268-
host = "python.org"
269+
host = "test.python.org"
269270
http_version = "1.1"
270271
initial = 4
271272
method = "HEAD"
@@ -276,17 +277,17 @@ resource "fastly_service_vcl" "cdn" {
276277
window = 5
277278
}
278279

279-
logging_datadog {
280+
logging_datadog { # TODO
280281
# At least one attribute in this block is (or was) sensitive,
281282
# so its contents will not be displayed.
282283
}
283284

284-
logging_s3 {
285+
logging_s3 { # TODO
285286
# At least one attribute in this block is (or was) sensitive,
286287
# so its contents will not be displayed.
287288
}
288289

289-
logging_syslog {
290+
logging_syslog { # TODO
290291
# At least one attribute in this block is (or was) sensitive,
291292
# so its contents will not be displayed.
292293
}
@@ -307,7 +308,7 @@ resource "fastly_service_vcl" "cdn" {
307308
feature_revision = 1
308309
http_methods = "GET,PUT,TRACE,POST,HEAD,DELETE,PATCH,OPTIONS"
309310
logger_type = "datadog"
310-
name = "python.org backends"
311+
name = "test.python.org backends"
311312
penalty_box_duration = 2
312313
ratelimiter_id = "6SnVeRHflsd9pTPPFvhYqX"
313314
response_object_name = null
@@ -337,7 +338,7 @@ resource "fastly_service_vcl" "cdn" {
337338
default_host = null
338339
force_miss = false
339340
force_ssl = true
340-
geo_headers = false
341+
geo_headers = false # ! DEPRECATED
341342
hash_keys = null
342343
max_stale_age = 86400
343344
name = "Default cache policy"
@@ -351,7 +352,7 @@ resource "fastly_service_vcl" "cdn" {
351352
default_host = null
352353
force_miss = false
353354
force_ssl = false
354-
geo_headers = false
355+
geo_headers = false # ! DEPRECATED
355356
hash_keys = null
356357
max_stale_age = 60
357358
name = "Force Pass"

0 commit comments

Comments
 (0)