Files
hunfabric/modules
Ludovico Magnocavallo 981e4581ee Add project-factory based data platform dataset to FAST project factory stage (#3957)
* dp rewrite stage 0, projects

* remove plan files

* generalize handling of basepath for projects in project-factory module

* central-0 ---> core-0

* add schemas, validate YAMLs, tags

* aspect types

* data catalog policy tag factory

* add support for data catalog taxonomy to project factory

* complete retrofit of old stage configuration, except networking

* shared vpc networking

* networking

* data platform as pf dataset

* docs

* test

* remove legacy dp stage, fix tests and links

* boilerplate

* tfdoc

* fix unrelated tfdoc

* schemas

* fix errors

* schema

* duplicate schemas

* yamllint

* Fix module naming convention for aspect-types

* Fix factories_config in vpcs.tf for net-vpc-factory compatibility

* Update schema documentation based on schema changes

* Fix false rename conflict in .config.yaml files

* Sync schemas and update documentation

* Fix path expansion for aspect-types and revert projects_input to master

* Restore path expansion for org_policies in projects-iam call

* Fix trailing newlines in schema duplicates to satisfy duplicate-diff

* Fix path expansion for data_catalog_taxonomy in taxonomies.tf

* Update inventory for data-platform test and clean up debug prints

* Add full values to data-platform inventory

* Align Stage 2 VPC Factory integration with Stage 0 and fix tests

TAG=agy

* Fix project factory context resolution and data platform datasets

- Update tag context keys in project factory to use file key without 'projects/' prefix.
- Fix tag reference in product-0.yaml.
- Fix shared_vpc_service_config in shared-0.yaml by moving service account to network_users.
- Set parent for domain-0 folder to data-platform.
- Mock net-dev-0 project ID in tests.
- Update inventories.

TAG=agy
CONV=4b37fa5b-bf59-4604-9e8f-b55353d967a0

* Fix project-level tag keys context resolution in project factory

* Fix commented out tag reference in domain-0 .config.yaml

* Fix merge() calls with empty arguments in project-factory and data-catalog-policy-tag

* Update Data Platform dataset README with prerequisites and customization guide

* Add Table of Contents to Data Platform dataset README

* docs: update Data Platform README with project templates tip

* Document data platform output files and linking sequence in README

* Update data platform README with VPC-SC and delegated IAM details

* Refactor data platform dataset and align stage defaults

* Update test inventory and variables for data platform with new prefix
2026-05-12 16:44:32 +02:00
..
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00
2026-05-10 14:46:23 +00:00

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=v35.0.0&depth=1"
        name                = "my-project"
        billing_account     = "123456-123456-123456"
        parent              = "organizations/123456"
    }
    

Foundational modules

Process factories

Networking modules

Compute/Container

Data

AI

Development

Security

Serverless

Other