Relative Content

Tag Archive for google-cloud-platformterraformterraform-provider-gcpgoogle-cloud-monitoring

how to call value of a map(object) resource in another map(object) resource

resource “google_monitoring_custom_service” “customsrv” { for_each = var.custom_service_level display_name = each.value.service_display_name service_id = each.value.service_id project = var.project_id } // Google Monitoring SLO objects can support many different metric types, for more info see our documenation. resource “google_monitoring_slo” “custom_request_based_slo” { for_each = var.custom_sli service = google_monitoring_custom_service.customsrv[each.key].service_id display_name = each.value.metric_display_name goal = each.value.goal rolling_period_days = each.value.rolling_period_days // Replacable […]