@@ -8,7 +8,7 @@ resource "fastly_service_vcl" "cdn" {
8
8
default_ttl = 3600
9
9
force_refresh = false
10
10
http3 = false
11
- id = " 1d1Bii4LcJ9joSaowpIdb3 "
11
+ id = " z5nOzklFYCXDAUiLeqvS25 "
12
12
imported = false
13
13
name = " test.python.org"
14
14
stale_if_error = false
@@ -277,19 +277,36 @@ resource "fastly_service_vcl" "cdn" {
277
277
window = 5
278
278
}
279
279
280
- logging_datadog { # TODO
281
- # At least one attribute in this block is (or was) sensitive,
282
- # so its contents will not be displayed.
280
+ logging_datadog {
281
+ name = " ratelimit-debug"
282
+ token = var. DATADOG_API_KEY
283
+ region = " US"
283
284
}
284
285
285
- logging_s3 { # TODO
286
- # At least one attribute in this block is (or was) sensitive,
287
- # so its contents will not be displayed.
286
+ logging_s3 {
287
+ name = " psf-fastly-logs"
288
+ bucket_name = " psf-fastly-logs-eu-west-1"
289
+ domain = " s3-eu-west-1.amazonaws.com"
290
+ path = " /www-python-org/%Y/%m/%d/"
291
+ period = 3600
292
+ gzip_level = 9
293
+ # %h "%{now}V" %l "%{req.request}V %{req.url}V" %{req.proto}V %>s %{resp.http.Content-Length}V %{resp.http.age}V "%{resp.http.x-cache}V" "%{resp.http.x-cache-hits}V" "%{req.http.content-type}V" "%{req.http.accept-language}V" "%{cstr_escape(req.http.user-agent)}V"
294
+ format = " " # TODO
295
+ timestamp_format = " %Y-%m-%dT%H:%M:%S.000"
296
+ redundancy = " standard"
297
+ format_version = 2
298
+ message_type = " classic"
299
+ compression_codec = " gzip"
300
+ access_key = var. AWS_ACCESS_KEY_ID
301
+ secret_key = var. AWS_SECRET_ACCESS_KEY
288
302
}
289
303
290
- logging_syslog { # TODO
291
- # At least one attribute in this block is (or was) sensitive,
292
- # so its contents will not be displayed.
304
+ logging_syslog {
305
+ name = " syslog"
306
+ address = " cdn-logs.nyc1.psf.io"
307
+ port = 514
308
+ # %h "%{now}V" %l "%{req.request}V %{req.url}V" %{req.proto}V %>s %{resp.http.Content-Length}V %{resp.http.age}V "%{resp.http.x-cache}V" "%{resp.http.x-cache-hits}V" "%{req.http.content-type}V" "%{req.http.accept-language}V" "%{cstr_escape(req.http.user-agent)}V"
309
+ format = " " # TODO
293
310
}
294
311
295
312
product_enablement {
@@ -310,7 +327,7 @@ resource "fastly_service_vcl" "cdn" {
310
327
logger_type = " datadog"
311
328
name = " test.python.org backends"
312
329
penalty_box_duration = 2
313
- ratelimiter_id = " 6SnVeRHflsd9pTPPFvhYqX "
330
+ ratelimiter_id = " ... " # TODO: create one for ngwaf test service
314
331
response_object_name = null
315
332
rps_limit = 10
316
333
uri_dictionary_name = null
0 commit comments