Terraform Google Bootstrap

screenshot of Terraform Google Bootstrap

Bootstraps Terraform usage and related CI/CD in a new Google Cloud organization

Overview:

The terraform-google-bootstrap module is designed to assist in bootstrapping a Google Cloud Platform (GCP) organization by creating all necessary GCP resources and permissions for using the Cloud Foundation Toolkit (CFT). Additionally, it provides a submodule for setting up Cloud Build and Cloud Source Repos for managing foundational code.

Features:

  • Create a new GCP seed project with customized project ID
  • Enable necessary APIs in the seed project
  • Create a service account for Terraform in the seed project
  • Set up GCS bucket for Terraform state with access for service account
  • Grant IAM permissions required for CFT modules and organization setup
  • Configure organization-wide project creator and billing account creator roles
  • Grant organization permissions to designated groups
  • Provide optional permissions for service account impersonation

Summary:

The terraform-google-bootstrap module simplifies the process of setting up a GCP organization by creating essential resources and permissions required for using the Cloud Foundation Toolkit. It provides a structured approach to initializing the GCP environment, enabling APIs, setting up service accounts, managing Terraform state, and granting necessary permissions to different groups within the organization. By following the installation guide and providing the required inputs, users can easily bootstrap their GCP organization for seamless operations using the Cloud Foundation Toolkit.