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

https://github.com/juwit/terraform-gcp-project


https://github.com/juwit/terraform-gcp-project

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# terraform-gcp-lab / project

This module creates a GCP project in the root of an org, or in a folder.

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.14 |
| [google](#requirement\_google) | >= 3.64.0 |
| [random](#requirement\_random) | >= 3.1.0 |

## Providers

| Name | Version |
|------|---------|
| [google](#provider\_google) | >= 3.64.0 |
| [random](#provider\_random) | >= 3.1.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [google_project.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/project) | resource |
| [google_project_iam_member.me](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/project_iam_member) | resource |
| [google_project_iam_member.terraform-roles](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/project_iam_member) | resource |
| [google_project_service.project_services](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/project_service) | resource |
| [google_service_account.terraform](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_account) | resource |
| [google_service_account_key.terraform-key](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/service_account_key) | resource |
| [random_id.id](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/id) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [billing\_account](#input\_billing\_account) | the billing account id to link with the project | `string` | n/a | yes |
| [folder\_id](#input\_folder\_id) | the id of the folder to create the project in. One of `org_id` or `folder_id` **MUST** be provided. | `string` | `""` | no |
| [org\_id](#input\_org\_id) | the id of the organisation to create the project in. One of `org_id` or `folder_id` **MUST** be provided. | `string` | `""` | no |
| [project\_name](#input\_project\_name) | the name of the project to create | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [service\_account\_key](#output\_service\_account\_key) | the key of the created service account |