1
1
# TODO: Combine with fastly.tf so that we can layer the ngwaf stuff for testing
2
2
# terraform import fastly_service_vcl.cdn 1d1Bii4LcJ9joSaowpIdb3 && terraform show:
3
3
resource "fastly_service_vcl" "cdn" {
4
- active_version = 140
5
- cloned_version = 140
6
- comment = null
7
- default_host = null
8
4
default_ttl = 3600
9
- force_refresh = false
10
5
http3 = false
11
- id = " z5nOzklFYCXDAUiLeqvS25"
12
- imported = false
13
6
name = " test.python.org"
14
7
stale_if_error = false
15
8
stale_if_error_ttl = 43200
16
- version_comment = null
17
9
18
10
acl {
19
- acl_id = " 6Xx3rqKOY0FjQ2CuoS9D8I"
20
- force_destroy = false
21
11
name = " Generated_by_IP_block_list"
12
+ force_destroy = false
22
13
}
23
14
24
15
backend {
@@ -153,9 +144,6 @@ resource "fastly_service_vcl" "cdn" {
153
144
" text/plain" ,
154
145
" text/xml" ,
155
146
]
156
- extensions = [
157
- null ,
158
- ]
159
147
name = " Default rules"
160
148
}
161
149
@@ -321,8 +309,8 @@ resource "fastly_service_vcl" "cdn" {
321
309
format_version = 2
322
310
message_type = " classic"
323
311
compression_codec = " gzip"
324
- access_key = var. AWS_ACCESS_KEY_ID
325
- secret_key = var. AWS_SECRET_ACCESS_KEY
312
+ s3_access_key = var. S3_ACCESS_KEY
313
+ s3_secret_key = var. S3_SECRET_KEY
326
314
}
327
315
328
316
logging_syslog {
@@ -351,7 +339,6 @@ resource "fastly_service_vcl" "cdn" {
351
339
logger_type = " datadog"
352
340
name = " test.python.org backends"
353
341
penalty_box_duration = 2
354
- ratelimiter_id = " ..." # TODO: create specific one for ngwaf test service? prod one is 5S7R6aG8KoT6QqtXFd1Nfk
355
342
response_object_name = null
356
343
rps_limit = 10
357
344
uri_dictionary_name = null
@@ -379,7 +366,7 @@ resource "fastly_service_vcl" "cdn" {
379
366
default_host = null
380
367
force_miss = false
381
368
force_ssl = true
382
- geo_headers = false # ! DEPRECATED
369
+ # geo_headers = false # ! DEPRECATED
383
370
hash_keys = null
384
371
max_stale_age = 86400
385
372
name = " Default cache policy"
@@ -393,7 +380,7 @@ resource "fastly_service_vcl" "cdn" {
393
380
default_host = null
394
381
force_miss = false
395
382
force_ssl = false
396
- geo_headers = false # ! DEPRECATED
383
+ # geo_headers = false # ! DEPRECATED
397
384
hash_keys = null
398
385
max_stale_age = 60
399
386
name = " Force Pass"
0 commit comments