diff --git a/test/integration/build/gcp-mm.tf b/test/integration/build/gcp-mm.tf index 0866db18..2665a170 100644 --- a/test/integration/build/gcp-mm.tf +++ b/test/integration/build/gcp-mm.tf @@ -269,6 +269,9 @@ variable "data_fusion_instance" { variable "cloud_run_jobs" { type = any } +variable "monitoring_group" { + type = any +} resource "google_compute_ssl_policy" "custom-ssl-policy" { name = var.ssl_policy["name"] min_tls_version = var.ssl_policy["min_tls_version"] @@ -2245,3 +2248,8 @@ resource "google_cloud_run_v2_job" "default" { } } } +resource "google_monitoring_group" "inspec-test-group" { + project = var.gcp_project_id + display_name = var.monitoring_group.name + filter = var.monitoring_group.filter +} diff --git a/test/integration/configuration/mm-attributes.yml b/test/integration/configuration/mm-attributes.yml index ab0626a0..7c0ec298 100644 --- a/test/integration/configuration/mm-attributes.yml +++ b/test/integration/configuration/mm-attributes.yml @@ -751,3 +751,7 @@ cloud_run_jobs: location: "us-central1" deletion_protection: "false" image: "us-central1-docker.pkg.dev/ppradhan/nas/balasubs_tutorial1_20230915_182543:latest" + +monitoring_group: + name: "inspec-test-group" + filter: "resource.metadata.name = has_substring(\"inspec\")"