This project is an example for enterpise levels GCP mangement with Terafrom IaC pipeline. You can also see more detail from below.
https://zenn.dev/koduki/articles/78a36c07020638
ref:
- Best practices for enterprise organizations
- Shared VPC
- Managing infrastructure as code with Terraform, Cloud Build, and GitOps
- Terraform - Google Cloud Platform Provider
There are some utility CLI
Exec terraform command.
cli/terraform.sh -d projects/02_cmn/sharedvpc-cmn/environments/dev init
cli/terraform.sh -d projects/02_cmn/sharedvpc-cmn/environments/dev plan
Rebuild environment branches from main-branch
cli/rebuild-pr-branch.sh all
cli/rebuild-pr-branch.sh prd