* fix os apt registries template * align project templates to new pf format * align project templates to new pf format
57 lines
2.1 KiB
YAML
57 lines
2.1 KiB
YAML
# 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=../../stages/2-project-factory/schemas/project.schema.json
|
|
|
|
# TODO: edit and uncomment the following line to create the project in a folder
|
|
# parent: $folder_ids:shared
|
|
|
|
# project id can be customized here if file name cannot be changed
|
|
# name: secops-anonym-0
|
|
|
|
services:
|
|
- secretmanager.googleapis.com
|
|
- run.googleapis.com
|
|
- cloudscheduler.googleapis.com
|
|
- cloudbuild.googleapis.com
|
|
- cloudresourcemanager.googleapis.com
|
|
- vpcaccess.googleapis.com
|
|
- dlp.googleapis.com
|
|
- vpcaccess.googleapis.com
|
|
|
|
automation:
|
|
# TODO: edit the automation project and optionally edit resource names
|
|
project: $project_ids:iac-0
|
|
service_accounts:
|
|
rw:
|
|
description: Read/write automation service account for secops pipeline.
|
|
bucket:
|
|
description: Terraform state bucket for apt registries.
|
|
# this reuses the existing stage state bucket and creates a folder in it
|
|
name: iac-stage-state
|
|
create: false
|
|
managed_folders:
|
|
secops-anonymization-pipeline:
|
|
iam:
|
|
roles/storage.objectCreator:
|
|
# the project id in the service account ref matches this file name
|
|
- $iam_principals:service_accounts/secops-anonymization-pipeline/automation/rw
|
|
roles/storage.objectViewer:
|
|
- $iam_principals:service_accounts/secops-anonymization-pipeline/automation/rw
|
|
iam:
|
|
roles/viewer:
|
|
- $iam_principals:service_accounts/secops-anonymization-pipeline/automation/rw
|
|
roles/owner:
|
|
- $iam_principals:service_accounts/secops-anonymization-pipeline/automation/rw
|