This repository was archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudsql.tf
More file actions
48 lines (44 loc) · 1.38 KB
/
cloudsql.tf
File metadata and controls
48 lines (44 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module "sql-db" {
source = "GoogleCloudPlatform/sql-db/google//modules/mysql"
name = "nextcloud-db-instance"
project_id = var.project_id
database_version = "MYSQL_8_0"
deletion_protection = true
// Master Configuration
tier = "db-f1-micro"
zone = var.zone
region = var.region
availability_type = "ZONAL"
maintenance_window_day = 7
maintenance_window_hour = 12
maintenance_window_update_track = "stable"
disk_autoresize = false
disk_type = "PD_HDD"
disk_size = 10
// Network Configuration
ip_configuration = {
ipv4_enabled = true
allocated_ip_range = ""
require_ssl = false
private_network = google_compute_network.nextcloud-network.self_link
authorized_networks = [
{
name = google_compute_address.nextcloud-ip.name,
value = google_compute_address.nextcloud-ip.address
}
]
}
// Nextcloud Database
db_name = "nextcloud-db"
db_charset = "utf8mb4"
db_collation = "utf8mb4_general_ci"
additional_users = [
{
name = "nextcloud"
password = ""
host = "%"
type = "BUILT_IN"
random_password = true
}
]
}