From 26aeed5193d8e0869a6f0a1c4dbe2e375db0ff05 Mon Sep 17 00:00:00 2001 From: Richard Towers Date: Wed, 17 Jul 2024 14:24:07 +0100 Subject: [PATCH] Tag elasticsearch resources with GOV.UK - Search One slightly unfortunate gotcha here is that the Project tag (note: capital P) is already used for "blue" or "govuk" stacks, alongside the "aws_stackname" tag. Tags are case sensitive in AWS, so Project != project. project with a lower case "p" is set as a cost allocation tag, while Project with an upper case "P" is not. Having them both is probably a bit confusing, but I don't want to go too far down the rabbit hole here. Eventually we should probably just remove the Project = blue / govuk tags from everything. --- terraform/projects/app-elasticsearch6/main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/terraform/projects/app-elasticsearch6/main.tf b/terraform/projects/app-elasticsearch6/main.tf index 6c045d220..83b5240ee 100644 --- a/terraform/projects/app-elasticsearch6/main.tf +++ b/terraform/projects/app-elasticsearch6/main.tf @@ -25,6 +25,7 @@ provider "aws" { tags = { terraform_deployment = basename(abspath(path.root)) aws_environment = var.aws_environment + project = "GOV.UK - Search" } } }