Skip to content

Commit

Permalink
terraform: add apm-server prefix to benchmarks
Browse files Browse the repository at this point in the history
Adds the apm-server prefix to the benchmarks project tag to facilitate
filtering for project.

Signed-off-by: Marc Lopez Rubio <[email protected]>
  • Loading branch information
marclop committed Dec 12, 2024
1 parent 582fd86 commit d185d72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/benchmark/main.tf
Original file line number Diff line number Diff line change
@@ -26,13 +26,14 @@ locals {
build = var.BUILD_ID
created_date = coalesce(var.CREATED_DATE, time_static.created_date.unix)
}
project = "apm-server-benchmarks"
}

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

provider "ec" {}

0 comments on commit d185d72

Please sign in to comment.