terraform-tfe-google_project

Stars
0
Committers
2

Terraform Cloud/Enterprise - Project in Google Cloud

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.

Features

  1. Create a ready-made environment/project in Google Cloud Platform for each environment in the project.
  2. Create a project and workspaces for each environment. Each workspace will be automatically connected to the project in Google Cloud via the OIDC provider.

[!NOTE]

This module consists of other modules:

Fetures in google_config and tfe_config depend on the above modules whether they support a specific feature or not.

Usage

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>"
  }
}

Examples

  • complete - Creates project with 2 environments and fully custom settings
  • simple - Creates project with 2 environments with the minimum settings necessary to start