Use context prefixes for auto service grants

This commit is contained in:
Wiktor Niesiobędzki
2025-10-12 09:53:47 +00:00
parent 23dd44ce62
commit ad9d52a7da
2 changed files with 11 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ module "project-service" {
shared_vpc_service_config = {
host_project = module.project-host.project_id
# reuse the list of services from the module's outputs
service_iam_grants = module.project-service.services
service_iam_grants = [for service in module.project-service.services : "$service_agents:${service}"]
}
}