cloud-foundation-fabric/modules
Wiktor Niesiobędzki bee3072568
Add support for Cloud Run v2 jobs (#1954)
Add support for Cloud Run v2 jobs

* create a separate file for service creation (service.tf) and job
  (job.tf) - for easy comparison
* add E2E tests where possibile
* remove default value for input variable `region`
* fix subnet range VPC Access Connector example
* add creation of service account for audit logs call (trigger requires
  service account)
* use provided trigger service account email in
  `local.trigger_sa_email`, so explicitly provided SA is passed to
  trigger
* set default value for vpc_connector_create.throughput.max, to match
  what is set by GCP API, as provider uses wrong default of 300 which
  results in perma-diff
* create inventory fiels for all examples

Global changes
* (tests) add input variable `project_number`, to allow assigning IAM permissions to Service Accounts in fixtures
* (tests) fix not outputting the path, when object is not found in inventory
* (tests) fix `create_e2e_sandbox.sh` - now it properly finds root of the repo

Secret Manager
* added `version_versions` output, to allow specifying versions in other modules. `versions` is sensitive and it makes it unsuitable for `for_each` values

New test fixtures
* `pubsub.tf` - creating one topic
* `secret-credential.tf` - creating Secret Manager `credential` secret
* `shared-vpc.tf` - creating two projects (host and service), and vpc in host project
* `vpc-connector.tf` - creating VPC Access Connector instance
2024-02-18 14:57:34 +01:00
..
__docs Extend FAST to support different principal types (#2064) 2024-02-12 14:35:30 +01:00
__experimental Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
api-gateway Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
apigee Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
artifact-registry Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
bigquery-dataset Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
bigtable-instance Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
billing-account Extend FAST to support different principal types (#2064) 2024-02-12 14:35:30 +01:00
binauthz Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
cloud-config-container Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
cloud-function-v1 Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
cloud-function-v2 Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
cloud-identity-group Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
cloud-run Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
cloud-run-v2 Add support for Cloud Run v2 jobs (#1954) 2024-02-18 14:57:34 +01:00
cloudsql-instance Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
compute-mig Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
compute-vm Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
container-registry Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
data-catalog-policy-tag Extend FAST to support different principal types (#2064) 2024-02-12 14:35:30 +01:00
data-catalog-tag Fix data catalog tag module 2024-02-17 09:56:17 +00:00
data-catalog-tag-template Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
dataform-repository Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
datafusion Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
dataplex Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
dataplex-datascan Extend FAST to support different principal types (#2064) 2024-02-12 14:35:30 +01:00
dataproc Extend FAST to support different principal types (#2064) 2024-02-12 14:35:30 +01:00
dns Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
dns-response-policy Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
endpoints Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
folder Extend FAST to support different principal types (#2064) 2024-02-12 14:35:30 +01:00
gcs Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
gcve-private-cloud Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
gke-cluster-autopilot Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
gke-cluster-standard Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
gke-hub Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
gke-nodepool Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
iam-service-account Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
kms Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
logging-bucket Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
ncc-spoke-ra Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-address Use less conflicting IP 2024-02-13 07:40:31 +01:00
net-cloudnat Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-firewall-policy Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-ipsec-over-interconnect Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-lb-app-ext Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-lb-app-ext-regional Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-lb-app-int Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-lb-app-int-cross-region Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-lb-ext Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-lb-int Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-lb-proxy-int Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-swp Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-vlan-attachment Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-vpc Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-vpc-firewall Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-vpc-peering Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-vpn-dynamic Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-vpn-ha Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
net-vpn-static Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
organization Extend FAST to support different principal types (#2064) 2024-02-12 14:35:30 +01:00
project Extend FAST to support different principal types (#2064) 2024-02-12 14:35:30 +01:00
projects-data-source Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
pubsub Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
secret-manager Add support for Cloud Run v2 jobs (#1954) 2024-02-18 14:57:34 +01:00
service-directory Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
source-repository Extend FAST to support different principal types (#2064) 2024-02-12 14:35:30 +01:00
vpc-sc VPC-SC module factories (#2081) 2024-02-17 08:02:16 +01:00
workstation-cluster Bum terraform to version 1.7.0 2024-02-07 17:25:11 +01:00
README.md Data catalog Tag module (#2060) 2024-02-13 17:24:17 +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&depth=1"
        name                = "my-project"
        billing_account     = "123456-123456-123456"
        parent              = "organizations/123456"
    }
    

Foundational modules

Networking modules

Compute/Container

Data

Development

Security

Serverless