From e2f14e0eee99a070053828cc05492245e2165f9b Mon Sep 17 00:00:00 2001 From: Julio Castillo Date: Thu, 25 Jul 2024 13:45:02 +0200 Subject: [PATCH] Add moved blocks for the service networking service agent and IAM --- modules/project/service-agents.tf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/project/service-agents.tf b/modules/project/service-agents.tf index 7de3629fd2..552585af21 100644 --- a/modules/project/service-agents.tf +++ b/modules/project/service-agents.tf @@ -106,6 +106,11 @@ moved { to = google_project_service_identity.default } +moved { + from = google_project_service_identity.servicenetworking[0] + to = google_project_service_identity.default["servicenetworking.googleapis.com"] +} + resource "google_project_service_identity" "default" { provider = google-beta for_each = toset(local.primary_service_agents) @@ -114,6 +119,12 @@ resource "google_project_service_identity" "default" { depends_on = [google_project_service.project_services] } + +moved { + from = google_project_iam_member.servicenetworking[0] + to = google_project_iam_member.service_agents["service-networking"] +} + resource "google_project_iam_member" "service_agents" { for_each = local.service_agent_roles project = local.project.project_id