cloud-foundation-fabric/modules
Ludovico Magnocavallo 5453c585e0
FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052)
* rename stages

* remove support for external org billing, rename output files

* resman: make groups optional, align on new billing account variable

* bootstrap: multitenant outputs

* tenant bootstrap stage, untested

* fix folder name

* fix stage 0 output names

* optional creation for tag keys in organization module

* single tenant bootstrap minus tag

* rename output files, add tenant tag key

* fix organization module tag values output

* test skipping creation for tags in organization module

* single tenant bootstrap plan working

* multitenant bootstrap

* tfdoc

* fix check links error messages

* fix links

* tfdoc

* fix links

* rename fast tests, fix bootstrap tests

* multitenant stages have their own folder, simplify stage numbering

* stage renumbering

* wip

* rename tests

* exclude fast providers in fixture

* stage 0 tests

* stage 1 tests

* network stages tests

* stage tests

* tfdoc

* fix links

* tfdoc

* multitenant tests

* remove local files

* stage links command

* fix links script, TODO

* wip

* wip single tenant bootstrap

* working tenant bootstrap

* update gitignore

* remove local files

* tfdoc

* remove local files

* allow tests for tenant bootstrap stage

* tenant bootstrap proxies stage 1 tfvars

* stage 2 and 3 service accounts and IAM in tenant bootstrap

* wip

* wip

* wip

* drop multitenant bootstrap

* tfdoc

* add missing stage 2 SAs, fix org-level IAM condition

* wip

* wip

* optional tag value creation in organization module

* stage 1 working

* linting

* linting

* READMEs

* wip

* Make stage-links script work in old macos bash

* stage links command help

* fix output file names

* diagrams

* fix svg

* stage 0 skeleton and diagram

* test svg

* test svg

* test diagram

* diagram

* readme

* fix stage links script

* stage 0 readme

* README changes

* stage readmes

* fix outputs order

* fix link

* fix tests

* stage 1 test

* skip stage example

* boilerplate

* fix tftest skip

* default bootstrap stage log sinks to log buckets

* add logging to tenant bootstrap

* move iam variables out of tenant config

* fix cicd, reintroduce missing variable

* use optional in stage 1 cicd variable

* rename extras stage

* rename and move identity providers local, use optional for cicd variable

* tfdoc

* add support for wif pool and providers, ci/cd

* tfdoc

* fix links

* better handling of modules repository

* add missing role on logging project

* fix cicd pools in locals, test cicd

* fix workflow extension

* fix module source replacement

* allow tenant bootstrap cicd sa to impersonate resman sa

* tenant workflow templates fix for no providers file

* fix output files, push github workflow template to new repository

* remove try from outpout files

* align stage 1 cicd internals to stage 0

* tfdoc

* tests

* fix tests

* tests

* improve variable descriptions

* use optional in fast features

* actually create tenant log sinks, and allow the resman sa to do it

* test

* tests

* aaaand tests again

* fast features tenant override

* fast features tenant override

* fix wording

* add missing comment

* configure pf service accounts

* add missing comment

* tfdoc

* tests

* IAM docs

* update copyright

---------

Co-authored-by: Julio Castillo <jccb@google.com>
2023-02-04 15:00:45 +01:00
..
__experimental Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
api-gateway Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
apigee Merge branch 'master' into mci_gateway 2023-01-31 11:54:31 +00:00
artifact-registry Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
bigquery-dataset Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
bigtable-instance Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
billing-budget Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
binauthz Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
cloud-config-container Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
cloud-function Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
cloud-identity-group Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
cloud-run Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
cloudsql-instance Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
compute-mig Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
compute-vm Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
container-registry Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
data-catalog-policy-tag Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
datafusion Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
dns Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
endpoints Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
folder Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
gcs Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
gke-cluster Skip node config for autopilot (#1127) 2023-02-02 16:13:56 +01:00
gke-hub Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
gke-nodepool Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
iam-service-account Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
kms Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
logging-bucket Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-address Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-cloudnat Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-glb Fix tests/linting 2023-01-31 14:37:13 +01:00
net-ilb Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-ilb-l7 Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-interconnect-attachment-direct Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-vpc Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-vpc-firewall Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-vpc-peering Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-vpn-dynamic Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-vpn-ha Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
net-vpn-static Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
organization FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052) 2023-02-04 15:00:45 +01:00
project Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
projects-data-source Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
pubsub Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
secret-manager Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
service-directory Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
source-repository Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
vpc-sc Bump beta provider to 4.48 2023-01-29 15:50:24 +01:00
README.md Apigee module and blueprint 2022-11-16 19:49:26 +01:00

README.md

Terraform modules suite for Google Cloud

The modules collected in this folder are designed as a suite: they are meant to be composed together, and are designed to be forked and modified where use of third party code and sources is not allowed.

Modules try to stay close to the low level provider resources they encapsulate, and they all share a similar interface that combines management of one resource or set or resources, and the corresponding IAM bindings.

Authoritative IAM bindings are primarily used (e.g. google_storage_bucket_iam_binding for GCS buckets) so that each module is authoritative for specific roles on the resources it manages, and can neutralize or reconcile IAM changes made elsewhere.

Specific modules also offer support for non-authoritative bindings (e.g. google_storage_bucket_iam_member for service accounts), to allow granular permission management on resources that they don't manage directly.

These modules are not necessarily backward compatible. Changes breaking compatibility in modules are marked by major releases (but not all major releases contain breaking changes). Please be mindful when upgrading Fabric modules in existing Terraform setups, and always try to use versioned references in module sources so you can easily revert back to a previous version. Since the introduction of the moved block in Terraform we try to use it whenever possible to make updates non-breaking, but that does not cover all changes we might need to make.

These modules are used in the examples included in this repository. If you are using any of those examples in your own Terraform configuration, make sure that you are using the same version for all the modules, and switch module sources to GitHub format using references. The recommended approach to working with Fabric modules is the following:

  • Fork the repository and own the fork. This will allow you to:

    • Evolve the existing modules.
    • Create your own modules.
    • Sync from the upstream repository to get all the updates.
  • Use GitHub sources with refs to reference the modules. See an example below:

    module "project" {
        source              = "github.com/GoogleCloudPlatform/cloud-foundation-fabric//modules/project?ref=v13.0.0"
        name                = "my-project"
        billing_account     = "123456-123456-123456"
        parent              = "organizations/123456"
    }
    

Foundational modules

Networking modules

Compute/Container

Data

Development

Security

Serverless