-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathgce.tf
74 lines (66 loc) · 1.73 KB
/
gce.tf
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
resource "google_compute_instance" "airbyte_instance" {
name = "${var.project_id}-airbyte"
machine_type = local.airbyte_machine_type
project = var.project_id
metadata_startup_script = file("./sh_scripts/airbyte.sh")
depends_on = [
google_project_service.data_project_services,
]
boot_disk {
initialize_params {
image = "ubuntu-2004-focal-v20210415"
size = 50
type = "pd-balanced"
}
}
network_interface {
network = "default"
access_config {
network_tier = "PREMIUM"
}
}
}
resource "google_compute_instance" "metabase_instance" {
name = "${var.project_id}-metabase"
machine_type = local.metabase_machine_type
project = var.project_id
metadata_startup_script = file("./sh_scripts/metabase.sh")
depends_on = [
google_project_service.data_project_services,
]
boot_disk {
initialize_params {
image = "ubuntu-2004-focal-v20210415"
size = 50
type = "pd-balanced"
}
}
network_interface {
network = "default"
access_config {
network_tier = "PREMIUM"
}
}
}
resource "google_compute_instance" "airflow_instance" {
name = "${var.project_id}-airflow"
machine_type = local.airflow_machine_type
project = var.project_id
metadata_startup_script = file("./sh_scripts/airflow.sh")
depends_on = [
google_project_service.data_project_services,
]
boot_disk {
initialize_params {
image = "ubuntu-2004-focal-v20210415"
size = 50
type = "pd-balanced"
}
}
network_interface {
network = "default"
access_config {
network_tier = "PREMIUM"
}
}
}