From 88aca97eb78d5e19f795314753554aacf888d77b Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 8 Aug 2024 10:47:28 +0200 Subject: [PATCH] terraform: configure github workflow run id --- testing/benchmarking/main.tf | 1 + testing/benchmarking/variables.tf | 6 ++++++ testing/smoketest/main.tf | 1 + 3 files changed, 8 insertions(+) diff --git a/testing/benchmarking/main.tf b/testing/benchmarking/main.tf index 830e2f5e..9cb05511 100644 --- a/testing/benchmarking/main.tf +++ b/testing/benchmarking/main.tf @@ -49,6 +49,7 @@ provider "aws" { module "tags" { source = "github.com/elastic/apm-server//testing/infra/terraform/modules/tags?depth=1" project = "lambda-extension-benchmarks" + build = vars.github_workflow_id } module "ec_deployment" { diff --git a/testing/benchmarking/variables.tf b/testing/benchmarking/variables.tf index 8e50c1e9..13145c8b 100644 --- a/testing/benchmarking/variables.tf +++ b/testing/benchmarking/variables.tf @@ -85,3 +85,9 @@ variable "elasticsearch_zone_count" { description = "Optional Elasticsearch zone count" default = 2 } + +variable "github_workflow_id" { + type = string + description = "The GitHub Workflow ID" + default = "1" +} diff --git a/testing/smoketest/main.tf b/testing/smoketest/main.tf index f75c9bd6..3209fe29 100644 --- a/testing/smoketest/main.tf +++ b/testing/smoketest/main.tf @@ -8,6 +8,7 @@ provider "aws" { module "tags" { source = "github.com/elastic/apm-server//testing/infra/terraform/modules/tags?depth=1" project = local.user_name + build = vars.github_workflow_id } module "ec_deployment" {