Skip to content

Commit 2961f77

Browse files
authored
fix: update terraform team tag to profiling (#577)
apm-server team is deprecated, use profiling
1 parent b902110 commit 2961f77

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

testing/benchmarking/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ provider "aws" {
4747
}
4848

4949
module "tags" {
50-
source = "github.com/elastic/apm-server//testing/infra/terraform/modules/tags?depth=1"
50+
source = "../tf-modules/tags"
5151
project = "lambda-extension-benchmarks"
5252
build = var.github_workflow_id
5353
}

testing/smoketest/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ provider "aws" {
66
}
77

88
module "tags" {
9-
source = "github.com/elastic/apm-server//testing/infra/terraform/modules/tags?depth=1"
9+
source = "../tf-modules/tags"
1010
project = local.user_name
1111
build = var.github_workflow_id
1212
}

testing/tf-modules/tags/output.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
locals {
2+
tags = {
3+
"division" : "engineering"
4+
"org" : "obs"
5+
"team" : "profiling"
6+
"project" : var.project
7+
"build" : var.build
8+
"ephemeral" : "true"
9+
}
10+
}
11+
12+
output "tags" {
13+
value = local.tags
14+
description = "Tags for CSP resources"
15+
}
16+
17+
output "labels" {
18+
value = local.tags
19+
description = "Labels for CSP resources"
20+
}

testing/tf-modules/tags/vars.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
variable "project" {
2+
description = "The value to use for the project tag/label"
3+
type = string
4+
}
5+
6+
variable "build" {
7+
description = "The value to use for the build tag/label"
8+
type = string
9+
default = "unknown"
10+
}

0 commit comments

Comments
 (0)