-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsql.tf
More file actions
50 lines (36 loc) · 1 KB
/
Copy pathsql.tf
File metadata and controls
50 lines (36 loc) · 1 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
49
50
resource "google_sql_database_instance" "anime" {
name = "anime"
database_version = "POSTGRES_12"
region = "europe-west2"
settings {
tier = "db-custom-1-3840"
}
}
resource "google_sql_database" "anime" {
name = "anime"
instance = google_sql_database_instance.anime.name
}
variable "anime_db_password" {}
resource "google_sql_user" "anime" {
name = "anime"
instance = google_sql_database_instance.anime.name
password = var.anime_db_password
}
resource "google_sql_database_instance" "forests" {
name = "forests"
database_version = "POSTGRES_12"
region = "europe-west2"
settings {
tier = "db-custom-1-3840"
}
}
resource "google_sql_database" "forests" {
name = "forests"
instance = google_sql_database_instance.forests.name
}
variable "forests_db_password" {}
resource "google_sql_user" "forests" {
name = "forests"
instance = google_sql_database_instance.forests.name
password = var.forests_db_password
}