Skip to content

Commit d185d72

Browse files
committed
terraform: add apm-server prefix to benchmarks
Adds the apm-server prefix to the benchmarks project tag to facilitate filtering for project. Signed-off-by: Marc Lopez Rubio <[email protected]>
1 parent 582fd86 commit d185d72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/benchmark/main.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ locals {
2626
build = var.BUILD_ID
2727
created_date = coalesce(var.CREATED_DATE, time_static.created_date.unix)
2828
}
29+
project = "apm-server-benchmarks"
2930
}
3031

3132
module "tags" {
3233
source = "../infra/terraform/modules/tags"
3334
# use the convention for team/shared owned resources if we are running in CI.
3435
# assume this is an individually owned resource otherwise.
35-
project = startswith(var.user_name, "benchci") ? "benchmarks" : var.user_name
36+
project = startswith(var.user_name, "benchci") ? local.project : "${local.project}-${var.user_name}"
3637
}
3738

3839
provider "ec" {}

0 commit comments

Comments
 (0)