Go to file
Ludovico Magnocavallo 725f7effce
Initial MVP for CI/CD (#608)
* preliminary support for wif in stage 0

* IAM wif role

* IAM wif role TODO

* add support for external SA IAM to SA module

* add name output to SA module

* separate cicd SA

* tfdoc

* GITLAB principal (untested)

* make GCS name output static

* outputs bucket

* fix stage 1 test

* tweak outputs

* tfdoc

* move wif_pool to automation variable

* add support for top-level and repository providers

* add missing boilerplate

* fix branchless principal

* initial workflow

* symlink provider template in stages

* remove service accounts from stage 0 cicd tfvars

* add cicd interface variable to resman stage

* fix cicd variable in resman stage

* better condition on outputs_location

* fix last change

* change outputs_location type

* revert outputs_location change

* split outputs in stage 0

* update ci/cd temporary notes

* rename additive IAM resource in SA module

* split outputs in stage 1

* remove unused locals

* fix stage 1 tests

* tfdoc

* Upload action files to outputs_bucket

* Fix tests and README

* rename template, streamline outputs

* local templates and gcs output for all stage 2

* add workflows to local output files

* Use lowercase WIF providers everywhere

* Bring back suffix for workflow files

* Remove unused files

* Update READMEs

* preliminary CI/CD implementation for stage 1

* fix stage 1

* stage 1 cicd

* tfdoc

* fix tests

* readme and links for cicd and wif

* refactor wif providers

* refactor cicd for stage 1

* fix stage 1

* wif org policies

* split identity provider configuration from cicd

* add type attribute to cicd repositories

* valid cicd repositories have a workflow template

* refactor stage 01

* fix stage 01 tests

* minimal CI/CD documentation

* better check_links error reporting

* fix links

* Added Gitlab specific configurations

Set the default issuer_uri for Gitlab. Added allowed audiences to OIDC configuration.

* Fixed TF formatting in identity providers.

* Changing identity provider audience to null

Changing identity provider audience to default to null.

* add instructions for renaming workflows

* address Julio's comments

Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: alexmeissner <alexmeissner@google.com>
2022-04-12 08:17:27 +02:00
.github/workflows comment branch filter 2022-03-16 14:09:18 +01:00
assets/logos Add logo to readme file 2021-11-17 16:49:24 +01:00
examples Fix typo (#616) 2022-04-11 07:16:10 +02:00
fast Initial MVP for CI/CD (#608) 2022-04-12 08:17:27 +02:00
modules Initial MVP for CI/CD (#608) 2022-04-12 08:17:27 +02:00
tests Initial MVP for CI/CD (#608) 2022-04-12 08:17:27 +02:00
tools Initial MVP for CI/CD (#608) 2022-04-12 08:17:27 +02:00
.gitignore Initial MVP for CI/CD (#608) 2022-04-12 08:17:27 +02:00
CHANGELOG.md Update CHANGELOG.md 2022-04-07 18:49:18 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md 2022-01-05 03:16:01 +01:00
LICENSE Initial commit 2019-05-03 17:58:36 -04:00
MANIFESTO.md Update MANIFESTO.md 2021-07-21 11:07:03 +02:00
README.md [#593] Add HTTP ILB module (net-ilb-l7) 2022-04-05 08:58:55 +02:00
REFERENCES.md Reorder links in REFERENCES.md 2022-01-11 13:23:55 +01:00
default-versions.tf Copyright bump (#410) 2022-01-01 15:52:31 +01:00
stages.png Merge Fabric FAST (#435) 2022-01-19 14:19:39 +01:00

README.md

Cloud Foundation Fabric

Terraform Examples and Modules for Google Cloud

This repository provides end-to-end examples and a suite of Terraform modules for Google Cloud, which support different use cases:

  • organization-wide landing zone blueprint used to bootstrap real-world cloud foundations
  • reference examples used to deep dive on network patterns or product features
  • a comprehensive source of lean modules that lend themselves well to changes

The whole repository is meant to be cloned as a single unit, and then forked into separate owned repositories to seed production usage, or used as-is and periodically updated as a complete toolkit for prototyping. You can read more on this approach in our manifesto.

Organization blueprint (Fabric FAST)

Setting up a production-ready GCP organization is often a time-consuming process. Fabric FAST aims to speed up this process via two complementary goals. On the one hand, FAST provides a design of a GCP organization that includes the typical elements required by enterprise customers. Secondly, we provide a reference implementation of the FAST design using Terraform.

Modules

The suite of modules in this repository are designed for rapid composition and reuse, and to be reasonably simple and readable so that they can be forked and changed where use of third party code and sources is not allowed.

All modules share a similar interface where each module tries to stay close to the underlying provider resources, support IAM together with resource creation and modification, offer the option of creating multiple resources where it makes sense (eg not for projects), and be completely free of side-effects (eg no external commands).

The current list of modules supports most of the core foundational and networking components used to design end-to-end infrastructure, with more modules in active development for specialized compute, security, and data scenarios.

Currently available modules:

For more information and usage examples see each module's README file.

End-to-end examples

The examples in this repository are split in several main sections: foundational examples that bootstrap the organizational hierarchy and automation prerequisites, networking examples that implement core patterns or features, data solutions examples that demonstrate how to integrate data services in complete scenarios, cloud operations examples that leverage specific products to meet specific operational needs and factories that implement resource factories for the repetitive creation of specific resources.