This terraform module provisions a Google Cloud Platform project
module "gcp_project" {
source = "nephosolutions/gcp-project/google"
version = "~> 3.0.0"
billing_account = "..."
organisation_id = "..."
project_name = "..."
ssh_users = {
foo = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQDLm..."
bar = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQDLn..."
}
}
Attention: Enabled Google project API services won't get disabled, if removed from the configuration.
Name | Description | Type | Default | Required |
---|---|---|---|---|
api_services | list of Google APIs to activate on this project | list(string) | [] |
no |
auto_create_network | Create the 'default' network automatically. | string | "true" |
no |
billing_account | the billing_account to which the project should be attached to | string | n/a | yes |
default_region | The region used by default to create new resources | string | "" |
no |
default_zone | The zone within a region used by default to create new resources | string | "" |
no |
enable_oslogin | Use Cloud OS Login API to manage OS login configuration for Google account users | string | "false" |
no |
folder_id | The numeric ID of the folder this project should be created under. | string | "" |
no |
iam_bindings | Updates the IAM policy to grant a role to a list of members. Authoritative for a given role. Other roles within the IAM policy for the project are preserved. | map(list(string)) | {} |
no |
org_id | The numeric ID of the organization this project belongs to. | string | n/a | yes |
project_name | the name of the project | string | n/a | yes |
skip_delete | If true, the Terraform resource can be deleted without deleting the Project via the Google API. | string | "false" |
no |
ssh_users | a map of user:ssk_key pairs | map(string) | {} |
no |
Name | Description |
---|---|
project_id | the id of the project |
project_services | a list of enabled project services |