https://github.com/juwit/terraform-gcp-project
https://github.com/juwit/terraform-gcp-project
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/juwit/terraform-gcp-project
- Owner: juwit
- Created: 2021-04-21T14:09:32.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-13T13:37:59.000Z (almost 5 years ago)
- Last Synced: 2025-07-28T12:36:09.798Z (11 months ago)
- Language: HCL
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 |