Skip to content

Commit

Permalink
Add support for granting permissions to apache kafka service agent
Browse files Browse the repository at this point in the history
Managed Kafka service agent needs roles/managedkafka.serviceAgent on the subnet.
  • Loading branch information
derhally committed Dec 3, 2024
1 parent 3d53cd3 commit 43a52e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/shared_vpc_access/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ locals {
service_account = format("service-%[email protected]", local.service_project_number)
role = "roles/compute.networkUser"
}
"managedkafka.googleapis.com" : {
service_account = format("service-%[email protected]", local.service_project_number)
role = "roles/managedkafka.serviceAgent"
}
}
gke_shared_vpc_enabled = contains(var.active_apis, "container.googleapis.com")
composer_shared_vpc_enabled = contains(var.active_apis, "composer.googleapis.com")
Expand Down

0 comments on commit 43a52e7

Please sign in to comment.