Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion testing/benchmarking/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ provider "aws" {
}

module "tags" {
source = "github.com/elastic/apm-server//testing/infra/terraform/modules/tags?depth=1"
source = "../tf-modules/tags"
project = "lambda-extension-benchmarks"
build = var.github_workflow_id
}
Expand Down
2 changes: 1 addition & 1 deletion testing/smoketest/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ provider "aws" {
}

module "tags" {
source = "github.com/elastic/apm-server//testing/infra/terraform/modules/tags?depth=1"
source = "../tf-modules/tags"
project = local.user_name
build = var.github_workflow_id
}
Expand Down
20 changes: 20 additions & 0 deletions testing/tf-modules/tags/output.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
locals {
tags = {
"division" : "engineering"
"org" : "obs"
"team" : "profiling"
"project" : var.project
"build" : var.build
"ephemeral" : "true"
}
}

output "tags" {
value = local.tags
description = "Tags for CSP resources"
}

output "labels" {
value = local.tags
description = "Labels for CSP resources"
}
10 changes: 10 additions & 0 deletions testing/tf-modules/tags/vars.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
variable "project" {
description = "The value to use for the project tag/label"
type = string
}

variable "build" {
description = "The value to use for the build tag/label"
type = string
default = "unknown"
}
Loading