From 257d24dd49a8f4d03bd832ebbb9ffe944f70ed2e Mon Sep 17 00:00:00 2001 From: Tom Myers <106530686+tommyers-elastic@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:37:28 +0000 Subject: [PATCH] add required tags for AWS instances for testing in CI (#37209) * add required tags for AWS instances using for testing in CI * add tags for other aws filebeat inputs --- .../input/awscloudwatch/_meta/terraform/main.tf | 12 ++++++++++++ x-pack/filebeat/input/awss3/_meta/terraform/main.tf | 4 ++++ x-pack/metricbeat/module/aws/terraform.tf | 4 ++++ 3 files changed, 20 insertions(+) diff --git a/x-pack/filebeat/input/awscloudwatch/_meta/terraform/main.tf b/x-pack/filebeat/input/awscloudwatch/_meta/terraform/main.tf index f8b697cdbb43..53010f5032a8 100644 --- a/x-pack/filebeat/input/awscloudwatch/_meta/terraform/main.tf +++ b/x-pack/filebeat/input/awscloudwatch/_meta/terraform/main.tf @@ -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" { diff --git a/x-pack/filebeat/input/awss3/_meta/terraform/main.tf b/x-pack/filebeat/input/awss3/_meta/terraform/main.tf index b195cb2ff6bb..164b14f93ca8 100644 --- a/x-pack/filebeat/input/awss3/_meta/terraform/main.tf +++ b/x-pack/filebeat/input/awss3/_meta/terraform/main.tf @@ -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" } } } diff --git a/x-pack/metricbeat/module/aws/terraform.tf b/x-pack/metricbeat/module/aws/terraform.tf index 6a7ec6e24786..991650b1433c 100644 --- a/x-pack/metricbeat/module/aws/terraform.tf +++ b/x-pack/metricbeat/module/aws/terraform.tf @@ -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" } } }