From b97edcf765bfa220797aba16d425da99267031ef Mon Sep 17 00:00:00 2001 From: Gus Narea Date: Fri, 19 Jan 2024 15:57:27 +0000 Subject: [PATCH] Grant SREs _Container Analysis Occurrences Viewer_ role --- environments/_modules/gateway/monitoring.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/environments/_modules/gateway/monitoring.tf b/environments/_modules/gateway/monitoring.tf index 79388af..1be563f 100644 --- a/environments/_modules/gateway/monitoring.tf +++ b/environments/_modules/gateway/monitoring.tf @@ -10,6 +10,12 @@ resource "google_project_iam_binding" "dashboard_viewer_sre" { members = [var.sre_iam_uri] } +resource "google_project_iam_binding" "container_analysis_occurrences_sre" { + project = var.gcp_project_id + role = "roles/containeranalysis.occurrences.viewer" + members = [var.sre_iam_uri] +} + resource "google_monitoring_group" "main" { display_name = "gateway"