-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgce.tf
94 lines (77 loc) · 1.74 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
resource "google_compute_instance" "marketing_dev" {
name = "marketing-dev"
machine_type = "e2-micro"
zone = "${var.region}-a"
boot_disk {
initialize_params {
image = "debian-cloud/debian-10-buster-v20210916"
}
}
shielded_instance_config {
enable_secure_boot = true
}
scheduling {
preemptible = true
automatic_restart = false
}
network_interface {
subnetwork = google_compute_subnetwork.dev.self_link
}
labels = {
team = "marketplace"
cost-center = "002-01"
env = "dev"
}
}
resource "google_compute_instance" "finance_dev" {
name = "finance-dev"
machine_type = "e2-micro"
zone = "${var.region}-a"
boot_disk {
initialize_params {
image = "debian-cloud/debian-10-buster-v20210916"
}
}
shielded_instance_config {
enable_secure_boot = true
}
scheduling {
preemptible = true
automatic_restart = false
}
network_interface {
subnetwork = google_compute_subnetwork.dev.self_link
}
labels = {
team = "finance"
cost-center = "002-02"
env = "dev"
app = "erp"
}
}
resource "google_compute_instance" "website" {
name = "website-dev"
machine_type = "e2-micro"
zone = "southamerica-east1-a"
boot_disk {
initialize_params {
image = "debian-cloud/debian-10-buster-v20210916"
}
}
shielded_instance_config {
enable_secure_boot = true
}
scheduling {
preemptible = true
automatic_restart = false
}
network_interface {
subnetwork = google_compute_subnetwork.dev.self_link
}
labels = {
team = "it"
cost-center = "001-01"
env = "dev"
app = "website"
}
}