Requirements

Name Version
terraform >= 0.13
google ~> 3.0

Providers

Name Version
google ~> 3.0
local n/a
template n/a

Inputs

Name Description Type Default Required
app set to true to include app tier bool false no
app_server_instance_config n/a
object({
disk_image = string
disk_size = string
disk_type = string
target_size = string
machine_type = string
})
{
"disk_image": "appserver_windows",
"disk_size": "200",
"disk_type": "pd-ssd",
"machine_type": "n1-standard-1",
"target_size": "1"
}
no
app_startup_script bash startup script for app server string "" no
database set to true to include database tier bool false no
database_instance_config n/a
object({
disk_image = string
disk_size = string
disk_type = string
target_size = string
machine_type = string
})
{
"disk_image": "database_windows",
"disk_size": "200",
"disk_type": "pd-ssd",
"machine_type": "n1-standard-1",
"target_size": "1"
}
no
database_startup_script bash startup script for database server string "" no
firewall_ports Additional ports to allow through the firewall list(string)
[
""
]
no
ip_allow_list IP CIDRs to alow list(string)
[
"0.0.0.0/0"
]
no
labels labels (tags) to apply to the instance map(string)
{
"os": "",
"tier": ""
}
no
prefix name of application/developer - serves as prefix for resources to keep them unique string n/a yes
project Existing GCP project to deploy into any n/a yes
region region to deploy into string "europe-west2" no
subnet n/a any n/a yes
subnet_range IP CIDR range for subnet string "" no
vpc existing vpc the resources are deployed into any n/a yes
web set to true to include web tier bool false no
web_startup_script bash startup script for webserver string "" no
webserver_instance_config n/a
object({
disk_image = string
disk_size = string
disk_type = string
target_size = string
machine_type = string
})
{
"disk_image": "webserver_windows",
"disk_size": "200",
"disk_type": "pd-ssd",
"machine_type": "n1-standard-1",
"target_size": "1"
}
no

Outputs

Name Description
database_startup_script startup script when instance boots
web_startup_script startup script when instance boots
windows_app_startup_script startup script when instance boots