liveBook · Manning

GCP project

As explained in Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform

A Google Cloud resource that provides an administrative and organizational boundary for cloud resources and services.

A GCP project provides the boundary for a deployable set of cloud resources. A database environment can place its project, network, server template, and server group in one configuration, then provision them together. section 3.1

Use a project deliberately when organizing infrastructure:

  • Create a separate project for isolated experiments and examples so its resources can be deleted together afterward. section 1.5.1
  • A singleton configuration keeps the project and related resources in one place, simplifying provisioning-order debugging while risking a cluttered configuration over time. section 3.1
Figure 3.1 A singleton pattern expresses the configuration of an initial set of resources—such as a project, network, and database—in one file. This pattern captures the relationships among resources in one place.

Use the figure to see how a project anchors a network, server template, and server group in one infrastructure configuration. section 3.1

How Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform covers it

How deep it goes
Defines project placement within a singleton configuration and illustrates creation, but stops short of broader project administration.
Examples
Uses a database project with a custom network, MySQL server template, three-server group, and isolated example project.
What you can do after
Build it from scratch by expressing a project and related resources in one configuration for a single deployment.
How it connects
Connects GCP projects with infrastructure as code, networks, server templates, server groups, and Terraform.

Also explained in

Compare how 3 books explain GCP project →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform. The section links point to the parts of the book it draws on.