cloud-foundation-fabric/fast/stages
apichick d9ccf04221
Added managed_prometheus to features (#906)
* Added managed_prometheus monitoring_config

* fix module

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-10-25 21:18:50 +00:00
..
00-bootstrap update README 2022-10-23 19:56:08 +02:00
01-resman Comment redundant role in bootstrap stage, align IAM.md files, improve IAM tool (#842) 2022-09-29 08:30:01 +02:00
02-networking-nva PGA DNS records (#911) 2022-10-25 14:28:28 +02:00
02-networking-peering PGA DNS records (#911) 2022-10-25 14:28:28 +02:00
02-networking-separate-envs PGA DNS records (#911) 2022-10-25 14:28:28 +02:00
02-networking-vpn PGA DNS records (#911) 2022-10-25 14:28:28 +02:00
02-security FAST: configuration switches for features (#703) 2022-06-28 17:33:37 +02:00
03-data-platform Update firewall rules. 2022-09-20 16:57:35 +02:00
03-gke-multitenant Added managed_prometheus to features (#906) 2022-10-25 21:18:50 +00:00
03-project-factory feat(project-factory): allow folder_id to be defined in defaults_file 2022-10-20 15:52:32 +01:00
CLEANUP.md Update CLEANUP.md 2022-06-28 11:28:57 +02:00
COMPANION.md Update COMPANION.md 2022-09-12 21:30:24 +02:00
README.md Initial replacement for CI/CD stage (#903) 2022-10-23 19:52:45 +02:00

README.md

Fast stages

Each of the folders contained here is a separate "stage", or Terraform root module.

Each stage can be run in isolation (for example to only bring up a hub and spoke VPC in an existing environment), but when combined together they form a modular setup that allows top-down configuration of a whole GCP organization.

When combined together, each stage is designed to leverage the previous stage's resources and to provide outputs to the following stages via predefined contracts, that regulate what is exchanged.

This has two important consequences

  • any stage can be swapped out and replaced by different code as long as it respects the contract by providing a predefined set of outputs and optionally accepting a predefined set of variables
  • data flow between stages can be partially automated (see stage 00 documentation on output files), reducing the effort and pain required to compile variables by hand

One important assumption is that the flow of data is always forward looking, so no stage needs to depend on outputs generated further down the chain. This greatly simplifies both the logic and the implementation, and allows stages to be effectively independent.

To achieve this, we rely on specific GCP functionality like delegated role grants that allow controlled delegation of responsibilities, for example to allow managing IAM bindings at the organization level in different stages only for specific roles.

Refer to each stage's documentation for a detailed description of its purpose, the architectural choices made in its design, and how it can be configured and wired together to terraform a whole GCP organization. The following is a brief overview of each stage.

To destroy a previous FAST deployment follow the instructions detailed in cleanup.

Organizational level (00-01)

  • Bootstrap
    Enables critical organization-level functionality that depends on broad permissions. It has two primary purposes. The first is to bootstrap the resources needed for automation of this and the following stages (service accounts, GCS buckets). And secondly, it applies the minimum amount of configuration needed at the organization level, to avoid the need of broad permissions later on, and to implement a minimum of security features like sinks and exports from the start.
    Exports: automation variables, organization-level custom roles
  • Resource Management
    Creates the base resource hierarchy (folders) and the automation resources required later to delegate deployment of each part of the hierarchy to separate stages. This stage also configures organization-level policies and any exceptions needed by different branches of the resource hierarchy.
    Exports: folder ids, automation service account emails

Shared resources (02)

  • Security
    Manages centralized security configurations in a separate stage, and is typically owned by the security team. This stage implements VPC Security Controls via separate perimeters for environments and central services, and creates projects to host centralized KMS keys used by the whole organization. It's meant to be easily extended to include other security-related resources which are required, like Secret Manager.
    Exports: KMS key ids
  • Networking (VPN/NVA/Peering/Separate environments)
    Manages centralized network resources in a separate stage, and is typically owned by the networking team. This stage implements a hub-and-spoke design, and includes connectivity via VPN to on-premises, and YAML-based factories for firewall rules (hierarchical and VPC-level) and subnets. It's currently available in four flavors: spokes connected via VPN, and spokes connected via appliances, spokes connected via VPC peering, and separated network environments.
    Exports: host project ids and numbers, vpc self links

Environment-level resources (03)

  • Project Factory
    YAML-based fatory to create and configure application or team-level projects. Configuration includes VPC-level settings for Shared VPC, service-level configuration for CMEK encryption via centralized keys, and service account creation for workloads and applications. This stage is meant to be used once per environment.
  • Data Platform
  • GKE Multitenant
  • GCE Migration (in development)