Skip to content

Commit

Permalink
Add missing tags/labels to provider
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Lopez Rubio <[email protected]>
  • Loading branch information
marclop committed Dec 12, 2024
1 parent d185d72 commit 2ae820d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions testing/benchmark/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ provider "ec" {}

provider "aws" {
region = var.worker_region
default_tags {
tags = merge(local.ci_tags, module.tags.labels)
}
}

locals {
Expand Down
5 changes: 3 additions & 2 deletions testing/infra/terraform/modules/rally_workers/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
provider "google" {
project = var.gcp_project
region = var.gcp_region
project = var.gcp_project
region = var.gcp_region
default_labels = module.tags
}

locals {
Expand Down
4 changes: 0 additions & 4 deletions testing/infra/terraform/modules/soaktest_workers/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ resource "google_compute_instance" "worker" {
access_config {}
}

labels = merge(module.tags.labels, {
workspace = terraform.workspace
})

metadata = {
ssh-keys = "${local.ssh_user_name}:${data.tls_public_key.worker_login.public_key_openssh}"
}
Expand Down
4 changes: 4 additions & 0 deletions testing/infra/terraform/modules/soaktest_workers/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ provider "google" {
project = var.gcp_project
region = var.gcp_region
zone = var.gcp_zone

default_labels = merge(module.tags.labels, {
workspace = terraform.workspace
})
}

0 comments on commit 2ae820d

Please sign in to comment.