Skip to content

Latest commit

 

History

History
64 lines (50 loc) · 4.46 KB

README.md

File metadata and controls

64 lines (50 loc) · 4.46 KB

Cloudcraft Terraform Reference : root module

This root module creates a Google Project and shared network resources. Machine instances and their accompanying disks and IP addresses are generated in the vm-instance module

Cloudcraft environment diagram

Requirements

Name Version
google >= 4.27.0
random >=3.6.0

Providers

Name Version
google >= 4.27.0
random >=3.6.0

Modules

Name Source Version
vm_instance ./modules/vm-instance n/a

Resources

Name Type
google_compute_firewall.cloudcraft_service resource
google_compute_firewall.ping resource
google_compute_firewall.ssh resource
google_compute_network.cloudcraft_network resource
google_compute_subnetwork.cloudcraft_subnet resource
google_project.cloudcraft-project resource
google_project_iam_custom_role.cloudcraft_switcher resource
google_project_iam_custom_role.instance_lister resource
google_project_service.compute_api resource
google_service_account.cloudcraft_service_acct resource
random_id.project_id resource

Inputs

Name Description Type Default Required
billing_account_id ID of the billing account to use for the project. string n/a yes
network_name The name of the network the server resides in. string "cloudcraft-network" no
org_id The name of hosting organization's ID. string n/a yes
region The region where to build the project. string "us-central1" no
server_type Takes 'java' or 'bedrock'. string "bedrock" no
servers A map of the server configurations.
map(
object({
server_memory = optional(string)
data_disk_size = optional(string)
host_image = optional(string)
internal_ip = string
machine_type = optional(string),
server_type = optional(string)
})
)
n/a yes
vm_managers Name of group with permisions to activate and deactivate the server. string "cloudcraft-users" no
zone The zone where to build the project. string "us-central1-c" no

Outputs

Name Description
project_id The project ID.
servers The information on each of the servers.
zone The resource zone