Skip to content

Commit

Permalink
chore: apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Sep 10, 2024
1 parent e782de1 commit cd4c146
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions infra/cdn/ngwaf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ output "ngwaf_service_id" {

# Fastly Service Dictionary Items
resource "fastly_service_dictionary_items" "edge_security_dictionary_items" {
count = var.activate_ngwaf_service ? 1 : 0
count = var.activate_ngwaf_service ? 1 : 0
service_id = fastly_service_vcl.ngwaf_service[0].id
dictionary_id = [for d in fastly_service_vcl.ngwaf_service[0].dictionary : d.dictionary_id if d.name == var.edge_security_dictionary][0]
items = {
Expand All @@ -72,31 +72,31 @@ resource "fastly_service_dictionary_items" "edge_security_dictionary_items" {

# Fastly Service Dynamic Snippet Contents
resource "fastly_service_dynamic_snippet_content" "ngwaf_config_init" {
count = var.activate_ngwaf_service ? 1 : 0
count = var.activate_ngwaf_service ? 1 : 0
service_id = fastly_service_vcl.ngwaf_service[0].id
snippet_id = [for d in fastly_service_vcl.ngwaf_service[0].dynamicsnippet : d.snippet_id if d.name == "ngwaf_config_init"][0]
content = "### Fastly managed ngwaf_config_init"
manage_snippets = false
}

resource "fastly_service_dynamic_snippet_content" "ngwaf_config_miss" {
count = var.activate_ngwaf_service ? 1 : 0
count = var.activate_ngwaf_service ? 1 : 0
service_id = fastly_service_vcl.ngwaf_service[0].id
snippet_id = [for d in fastly_service_vcl.ngwaf_service[0].dynamicsnippet : d.snippet_id if d.name == "ngwaf_config_miss"][0]
content = "### Fastly managed ngwaf_config_miss"
manage_snippets = false
}

resource "fastly_service_dynamic_snippet_content" "ngwaf_config_pass" {
count = var.activate_ngwaf_service ? 1 : 0
count = var.activate_ngwaf_service ? 1 : 0
service_id = fastly_service_vcl.ngwaf_service[0].id
snippet_id = [for d in fastly_service_vcl.ngwaf_service[0].dynamicsnippet : d.snippet_id if d.name == "ngwaf_config_pass"][0]
content = "### Fastly managed ngwaf_config_pass"
manage_snippets = false
}

resource "fastly_service_dynamic_snippet_content" "ngwaf_config_deliver" {
count = var.activate_ngwaf_service ? 1 : 0
count = var.activate_ngwaf_service ? 1 : 0
service_id = fastly_service_vcl.ngwaf_service[0].id
snippet_id = [for d in fastly_service_vcl.ngwaf_service[0].dynamicsnippet : d.snippet_id if d.name == "ngwaf_config_deliver"][0]
content = "### Fastly managed ngwaf_config_deliver"
Expand Down

0 comments on commit cd4c146

Please sign in to comment.