Skip to content

Commit

Permalink
add required tags for AWS instances for testing in CI (#37209)
Browse files Browse the repository at this point in the history
* add required tags for AWS instances using for testing in CI

* add tags for other aws filebeat inputs
  • Loading branch information
tommyers-elastic authored Dec 6, 2023
1 parent 9cf1e77 commit 257d24d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions x-pack/filebeat/input/awscloudwatch/_meta/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ terraform {

provider "aws" {
region = var.aws_region
default_tags {
tags = {
environment = var.ENVIRONMENT
repo = var.REPO
branch = var.BRANCH
build = var.BUILD_ID
created_date = var.CREATED_DATE
division = "engineering"
org = "obs"
team = "cloud-monitoring"
project = "filebeat_aws-ci"
}
}

resource "random_string" "random" {
Expand Down
4 changes: 4 additions & 0 deletions x-pack/filebeat/input/awss3/_meta/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ provider "aws" {
branch = var.BRANCH
build = var.BUILD_ID
created_date = var.CREATED_DATE
division = "engineering"
org = "obs"
team = "cloud-monitoring"
project = "filebeat_aws-ci"
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions x-pack/metricbeat/module/aws/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ provider "aws" {
branch = var.BRANCH
build = var.BUILD_ID
created_date = var.CREATED_DATE
division = "engineering"
org = "obs"
team = "cloud-monitoring"
project = "metricbeat_aws-ci"
}
}
}
Expand Down

0 comments on commit 257d24d

Please sign in to comment.