Skip to content

Commit

Permalink
Rename govuk_environment to environment in www module
Browse files Browse the repository at this point in the history
  • Loading branch information
samsimpson1 committed Sep 4, 2024
1 parent 0a5f9cc commit db7de6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/import.tf
Original file line number Diff line number Diff line change
@@ -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
}

Expand Down
1 change: 1 addition & 0 deletions www/service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion www/variables.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "govuk_environment" {
variable "environment" {
type = string
}

Expand Down

0 comments on commit db7de6a

Please sign in to comment.