-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmonitoring.tf
executable file
·52 lines (44 loc) · 1.02 KB
/
monitoring.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
# Create a new instance
resource "google_compute_instance" "monitoring1" {
name = "monitoring1"
machine_type = "f1-micro"
zone = "${var.gcloud-zone}"
tags = ["das"]
metadata {
product = "monitoring1"
}
metadata_startup_script = "echo hi > /test.txt"
boot_disk {
initialize_params {
image = "ubuntu-1604-lts"
}
}
network_interface {
network = "${google_compute_network.monitoring.name}"
}
service_account {
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
}
}
# Create a new instance
resource "google_compute_instance" "monitoring2" {
name = "monitoring2"
machine_type = "f1-micro"
zone = "${var.gcloud-zone}"
tags = ["das"]
metadata {
product = "monitoring2"
}
metadata_startup_script = "echo hi > /test1.txt"
boot_disk {
initialize_params {
image = "ubuntu-1604-lts"
}
}
network_interface {
network = "${google_compute_network.platform.name}"
}
service_account {
scopes = ["userinfo-email", "compute-ro", "storage-ro"]
}
}