Skip to content

sagacitysolutions/terraform-google-gcp-project

 
 

Repository files navigation

Google Cloud Platform project Terraform module

This terraform module provisions a Google Cloud Platform project

Usage

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.

Inputs

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

Outputs

Name Description
project_id the id of the project
project_services a list of enabled project services

About

Terraform module to provision Google Cloud Platform projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%