Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support automation/controlling projects and resources in project factory #2162

Merged
merged 5 commits into from
Mar 19, 2024

Conversation

ludoo
Copy link
Collaborator

@ludoo ludoo commented Mar 19, 2024

This PR adds support for defining controlling (IaC) projects and resources in the project factory. This is an example from the README:

# file name: prod-app-example-0
# prefix via factory defaults: foo
# project id: foo-prod-app-example-0
billing_account: 012345-67890A-BCDEF0
parent: folders/12345678
services:
  - compute.googleapis.com
  - stackdriver.googleapis.com
iam:
  roles/owner:
    - rw
  roles/viewer:
    - ro
automation:
  project: foo-prod-iac-core-0
  service_accounts:
    # sa name: foo-prod-app-example-0-rw
    rw:
      description: Read/write automation sa for app example 0.
    # sa name: foo-prod-app-example-0-ro
    ro:
      description: Read-only automation sa for app example 0.
  buckets:
    # bucket name: foo-prod-app-example-0-state
    state:
      description: Terraform state bucket for app example 0.
      iam:
        roles/storage.objectCreator:
          - rw
        roles/storage.objectViewer:
          - rw
          - ro
          - "group: devops@example.org"

@ludoo ludoo enabled auto-merge (squash) March 19, 2024 08:52
modules/project-factory/README.md Outdated Show resolved Hide resolved
@ludoo ludoo merged commit 7f8d283 into master Mar 19, 2024
13 checks passed
@ludoo ludoo deleted the ludo/pf-automation branch March 19, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants