@@ -62,7 +62,7 @@ output "ngwaf_service_id" {
62
62
63
63
# Fastly Service Dictionary Items
64
64
resource "fastly_service_dictionary_items" "edge_security_dictionary_items" {
65
- count = var. activate_ngwaf_service ? 1 : 0
65
+ count = var. activate_ngwaf_service ? 1 : 0
66
66
service_id = fastly_service_vcl. ngwaf_service [0 ]. id
67
67
dictionary_id = [for d in fastly_service_vcl . ngwaf_service [0 ]. dictionary : d . dictionary_id if d . name == var . edge_security_dictionary ][0 ]
68
68
items = {
@@ -72,31 +72,31 @@ resource "fastly_service_dictionary_items" "edge_security_dictionary_items" {
72
72
73
73
# Fastly Service Dynamic Snippet Contents
74
74
resource "fastly_service_dynamic_snippet_content" "ngwaf_config_init" {
75
- count = var. activate_ngwaf_service ? 1 : 0
75
+ count = var. activate_ngwaf_service ? 1 : 0
76
76
service_id = fastly_service_vcl. ngwaf_service [0 ]. id
77
77
snippet_id = [for d in fastly_service_vcl . ngwaf_service [0 ]. dynamicsnippet : d . snippet_id if d . name == " ngwaf_config_init" ][0 ]
78
78
content = " ### Fastly managed ngwaf_config_init"
79
79
manage_snippets = false
80
80
}
81
81
82
82
resource "fastly_service_dynamic_snippet_content" "ngwaf_config_miss" {
83
- count = var. activate_ngwaf_service ? 1 : 0
83
+ count = var. activate_ngwaf_service ? 1 : 0
84
84
service_id = fastly_service_vcl. ngwaf_service [0 ]. id
85
85
snippet_id = [for d in fastly_service_vcl . ngwaf_service [0 ]. dynamicsnippet : d . snippet_id if d . name == " ngwaf_config_miss" ][0 ]
86
86
content = " ### Fastly managed ngwaf_config_miss"
87
87
manage_snippets = false
88
88
}
89
89
90
90
resource "fastly_service_dynamic_snippet_content" "ngwaf_config_pass" {
91
- count = var. activate_ngwaf_service ? 1 : 0
91
+ count = var. activate_ngwaf_service ? 1 : 0
92
92
service_id = fastly_service_vcl. ngwaf_service [0 ]. id
93
93
snippet_id = [for d in fastly_service_vcl . ngwaf_service [0 ]. dynamicsnippet : d . snippet_id if d . name == " ngwaf_config_pass" ][0 ]
94
94
content = " ### Fastly managed ngwaf_config_pass"
95
95
manage_snippets = false
96
96
}
97
97
98
98
resource "fastly_service_dynamic_snippet_content" "ngwaf_config_deliver" {
99
- count = var. activate_ngwaf_service ? 1 : 0
99
+ count = var. activate_ngwaf_service ? 1 : 0
100
100
service_id = fastly_service_vcl. ngwaf_service [0 ]. id
101
101
snippet_id = [for d in fastly_service_vcl . ngwaf_service [0 ]. dynamicsnippet : d . snippet_id if d . name == " ngwaf_config_deliver" ][0 ]
102
102
content = " ### Fastly managed ngwaf_config_deliver"
0 commit comments