Skip to content

Terraform module for Google Cloud bootstrap - creates projects, enables APIs, configures service accounts and sets up remote state storage with proper IAM permissions.

License

Notifications You must be signed in to change notification settings

FFerrinho/terraform-google-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Name Version
google 6.5.0

Providers

Name Version
google 6.5.0
random n/a

Modules

Name Source Version
tf_state_bucket FFerrinho/bucket/google 1.0.2

Resources

Name Type
google_folder.main resource
google_project.main resource
google_project_iam_member.main resource
google_project_service.main resource
google_service_account.main resource
google_service_account_iam_binding.main resource
random_id.main resource
google_billing_account.main data source
google_folder.main data source
google_organization.main data source

Inputs

Name Description Type Default Required
auto_create_network If the project should auto create a network. bool false no
billing_account The billing account id. string n/a yes
create_folder If a folder will be created along the bootstrap. bool n/a yes
folder_name The name for the folder. string null no
labels Additional labels for the resources. map(string) {} no
organization_domain The organization domain. string null no
organization_id The organization id. string null no
parent_folder The parent folder id. string null no
project_deletion_policy The deletion policy for the project. string "DELETE" no
project_display_name The project display name. string n/a yes
region The region to create the resources. string n/a yes
sa_member_roles SA roles to grant to users. set(string)
[
"roles/iam.serviceAccountUser",
"roles/iam.serviceAccountTokenCreator"
]
no
sa_users A list of users that will be able to impersonate de service account. set(string) n/a yes
service_account_description The description for the service account. string "Terraform SA for infrastructure automation." no
service_account_disabled If the service account should be disabled. Defaults to false. bool false no
service_account_display_name The display name for the service account. string n/a yes
service_account_id The service account id. string n/a yes
service_account_roles A list of roles to grant to the service account. set(string)
[
"roles/editor"
]
no

Outputs

Name Description
folder_name The name fo the folder created or used in the bootstrap.
project_name The name of the project created.
sa_users The users that will impersonate the service account.
service_account The service account created.
tf_state_bucket The name of the bucket created for the terraform state.

About

Terraform module for Google Cloud bootstrap - creates projects, enables APIs, configures service accounts and sets up remote state storage with proper IAM permissions.

Topics

Resources

License

Stars

Watchers

Forks

Languages