Ensure GCP DataFusion has stack driver monitoring enabled

Error: GCP DataFusion does not have stack driver monitoring enabled

Bridgecrew Policy ID: BC_GCP_GENERAL_38
Checkov Check ID: CKV_GCP_105
Severity: LOW

GCP DataFusion does not have stack driver monitoring enabled

Description

Enabling Stackdriver monitoring for your Google Cloud Platform (GCP) DataFusion instance can help improve the security and management of your data. Stackdriver is a monitoring and logging service that allows you to track the performance and health of your GCP resources.

Fix - Runtime

Fix - Buildtime

Terraform

resource "google_data_fusion_instance" "pass" {
  project                       = "examplea"
  provider                      = google-beta
  name                          = "my-instance"
  description                   = "My Data Fusion instance"
  region                        = "us-central1"
  type                          = "BASIC"
   enable_stackdriver_logging    = true
   enable_stackdriver_monitoring = true
  labels = {
    example_key = "example_value"
  }
  //private_instance = false
  network_config {
    network       = "default"
    ip_allocation = "10.89.48.0/22"
  }
  version                  = "6.3.0"
  dataproc_service_account = data.google_app_engine_default_service_account.default.email
}