Skip to content

A Terraform module to start the foundations for your GCP Landing Zone. Can create folder, project, bucket and service account. It is expected to be the first Terraform code you run on the platform.

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

16 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 ../terraform-google-bucket n/a

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.

About

A Terraform module to start the foundations for your GCP Landing Zone. Can create folder, project, bucket and service account. It is expected to be the first Terraform code you run on the platform.

Topics

Resources

License

Stars

Watchers

Forks

Languages