This module is used to create and manage projects based on the infrastructure built on the Google Cloud Platform using Terraform Cloud/Enterprise. Each project creates a set of Google projects, OIDC providers with service accounts and workspaces in Terraform Cloud/Enterprise and connect them together, providing a ready space to work.
[!NOTE]
This module consists of other modules:
- terraform-google-organization//modules/project
- terraform-google-organization//modules/folders
- terraform-google-iam//modules/iam-tfe-oidc
- tfe_project
- tfe_workspace
Fetures in
google_config
andtfe_config
depend on the above modules whether they support a specific feature or not.
module "project" {
source = "github.com/PCDEV-Cloud/terraform-tfe-google_project"
name = "Example-Project"
environments = ["staging", "uat", "production"]
google_config = {
parent = "<GOOGLE-ORGANIZATION-OR-FOLDER-ID-HERE>"
}
tfe_config = {
organization = "<TFE-ORGANIZATION-HERE>"
}
}