diff --git a/assets/import.tf b/assets/import.tf index a74ee06..a0a1ec8 100644 --- a/assets/import.tf +++ b/assets/import.tf @@ -17,6 +17,6 @@ import { import { for_each = local.dictionaries - to = fastly_service_dictionary_items.items[each.key] - id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}" + to = fastly_service_dictionary_items.items[each.key] + id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}" } diff --git a/datagovuk/import.tf b/datagovuk/import.tf index 0673be8..cb75215 100644 --- a/datagovuk/import.tf +++ b/datagovuk/import.tf @@ -17,6 +17,6 @@ import { import { for_each = local.dictionaries - to = fastly_service_dictionary_items.items[each.key] - id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}" + to = fastly_service_dictionary_items.items[each.key] + id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}" } diff --git a/datagovuk/service.tf b/datagovuk/service.tf index d6447ca..9b87b2b 100644 --- a/datagovuk/service.tf +++ b/datagovuk/service.tf @@ -1,5 +1,5 @@ locals { - secrets = yamldecode(var.secrets) + secrets = yamldecode(var.secrets) dictionaries = yamldecode(var.dictionaries) ip_allowlist = try(local.secrets["allowed_ip_addresses"], []) diff --git a/service-domain-redirect/variables.tf b/service-domain-redirect/variables.tf index f0096ba..70851b1 100644 --- a/service-domain-redirect/variables.tf +++ b/service-domain-redirect/variables.tf @@ -1,4 +1,4 @@ variable "environment" { - type = string + type = string default = "productioh" } diff --git a/www/import.tf b/www/import.tf index 0c92b11..562017a 100644 --- a/www/import.tf +++ b/www/import.tf @@ -17,6 +17,6 @@ import { import { for_each = local.dictionaries - to = fastly_service_dictionary_items.items[each.key] - id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}" + to = fastly_service_dictionary_items.items[each.key] + id = "${local.fastly_service_id}/${one([for d in data.fastly_dictionaries.dicts.dictionaries : d if d.name == each.key]).id}" } diff --git a/www/service.tf b/www/service.tf index c8f3e20..c007b75 100644 --- a/www/service.tf +++ b/www/service.tf @@ -1,10 +1,10 @@ locals { - secrets = yamldecode(var.secrets) + secrets = yamldecode(var.secrets) dictionaries = merge( yamldecode(var.dictionaries), yamldecode(file("../dictionaries.yaml")) ) - ab_tests = try(yamldecode(file("./ab_tests.yaml")), []) + ab_tests = try(yamldecode(file("./ab_tests.yaml")), []) ip_allowlist = try(local.secrets["allowed_ip_addresses"], []) allowed_cidrs = [ for v in local.ip_allowlist : strcontains(v, "/") ? v : "${v}/32"