An open API service indexing awesome lists of open source software.

https://github.com/pcdev-cloud/terraform-tfe-google_project


https://github.com/pcdev-cloud/terraform-tfe-google_project

terraform-cloud terraform-module terraform-modules

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# 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:
>
> - [terraform-google-organization//modules/project](https://github.com/PCDEV-Cloud/terraform-google-organization/tree/main/modules/project)
> - [terraform-google-organization//modules/folders](https://github.com/PCDEV-Cloud/terraform-google-organization/tree/main/modules/folders)
> - [terraform-google-iam//modules/iam-tfe-oidc](https://github.com/PCDEV-Cloud/terraform-google-iam/tree/main/modules/iam-tfe-oidc)
> - [tfe_project](https://github.com/PCDEV-Cloud/terraform-tfe-tfe_project)
> - [tfe_workspace](https://github.com/PCDEV-Cloud/terraform-tfe-tfe_workspace)
>
> Fetures in `google_config` and `tfe_config` depend on the above modules whether they support a specific feature or not.

## Usage

```hcl
module "project" {
source = "github.com/PCDEV-Cloud/terraform-tfe-google_project"

name = "Example-Project"
environments = ["staging", "uat", "production"]

google_config = {
parent = ""
}

tfe_config = {
organization = ""
}
}
```

## Examples

- [complete](https://github.com/PCDEV-Cloud/terraform-tfe-google_project/tree/main/examples/complete) - Creates project with 2 environments and fully custom settings
- [simple](https://github.com/PCDEV-Cloud/terraform-tfe-google_project/tree/main/examples/simple) - Creates project with 2 environments with the minimum settings necessary to start