Skip to content

Commit

Permalink
Move ab_tests.yaml to inside www module
Browse files Browse the repository at this point in the history
  • Loading branch information
samsimpson1 committed Sep 3, 2024
1 parent 9f6000f commit 2730d2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
File renamed without changes.
5 changes: 3 additions & 2 deletions www/service.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
locals {
secrets = yamldecode(var.secrets)
ip_allowlist = try(var.secrets["allowed_ip_addresses"], [])
allowed_cidrs = [
for v in local.ip_allowlist : strcontains(v, "/") ? v : "${v}/32"
Expand Down Expand Up @@ -41,12 +42,12 @@ locals {
formatted_allowed_ip_addresses = local.formatted_allowed_ips
ab_tests_rendered = templatefile(
"${path.module}/_multivariate_tests.vcl.tftpl",
{ ab_tests = try(var.configuration["ab_tests"], []) }
{ ab_tests = try(yamldecode(file("ab_tests.yaml")), []) }
)
module_path = path.module
},
var.configuration,
var.secrets
local.secrets
)
}

Expand Down

0 comments on commit 2730d2b

Please sign in to comment.