# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# yaml-language-server: $schema=../../../../schemas/folder.schema.json

name: Teams
iam_by_principals:
  $iam_principals:service_accounts/iac-0/iac-pf-rw:
    - roles/bigquery.admin
    - roles/container.admin
    - roles/iam.serviceAccountAdmin
    - roles/logging.admin
    - roles/pubsub.admin
    - roles/resourcemanager.folderAdmin
    - roles/resourcemanager.projectCreator
    - roles/resourcemanager.projectDeleter
    - roles/resourcemanager.projectIamAdmin
    - roles/resourcemanager.tagUser
    - roles/serviceusage.serviceUsageAdmin
    - roles/storage.admin
    - $custom_roles:service_project_network_admin
  $iam_principals:service_accounts/iac-0/iac-pf-ro:
    - roles/bigquery.dataViewer
    - roles/bigquery.jobUser
    - roles/browser
    - roles/compute.viewer
    - roles/container.clusterViewer
    - roles/logging.viewer
    - roles/pubsub.viewer
    - roles/resourcemanager.folderViewer
    - roles/resourcemanager.tagViewer
    - roles/serviceusage.serviceUsageViewer
    - $custom_roles:logging_viewer
    - $custom_roles:service_account_viewer
tag_bindings:
  context: $tag_values:context/project-factory
