From db7de6a4e71828e39d65c8478a0a2601effa4d93 Mon Sep 17 00:00:00 2001 From: Sam Simpson Date: Wed, 4 Sep 2024 10:10:35 +0100 Subject: [PATCH] Rename govuk_environment to environment in www module --- www/import.tf | 2 +- www/service.tf | 1 + www/variables.tf | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/www/import.tf b/www/import.tf index f7cba56..dc24ca7 100644 --- a/www/import.tf +++ b/www/import.tf @@ -1,7 +1,7 @@ data "fastly_services" "services" {} locals { - fastly_service = one([for service in data.fastly_services.services : service if service.name == "${title(var.govuk_environment)} GOV.UK"]) + fastly_service = one([for service in data.fastly_services.services : service if service.name == "${title(var.environment)} GOV.UK"]) fastly_service_id = fastly_service.id } diff --git a/www/service.tf b/www/service.tf index 7d3b5ae..5692245 100644 --- a/www/service.tf +++ b/www/service.tf @@ -39,6 +39,7 @@ locals { ab_tests = [] git_hash = var.TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA + environment = var.environment }, { # computed values formatted_allowed_ip_addresses = local.formatted_allowed_ips diff --git a/www/variables.tf b/www/variables.tf index 9304aee..4728d2f 100644 --- a/www/variables.tf +++ b/www/variables.tf @@ -1,4 +1,4 @@ -variable "govuk_environment" { +variable "environment" { type = string }