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