-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstance.tf
45 lines (39 loc) · 1.09 KB
/
instance.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
data "google_compute_image" "cos" {
family = "cos-stable"
project = "cos-cloud"
}
resource "google_compute_instance" "overleaf" {
name = "overleaf"
machine_type = "e2-medium"
project = var.project_id
zone = var.zone
network_interface {
network = "default"
access_config {
network_tier = "PREMIUM"
}
}
boot_disk {
initialize_params {
image = data.google_compute_image.cos.self_link
}
}
metadata = {
gce-container-declaration = file("container.yaml")
}
labels = {
container-vm = "cos-stable-105-17412-156-49"
}
service_account {
email = "205083995707-compute@developer.gserviceaccount.com"
scopes = [
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring.write",
"https://www.googleapis.com/auth/pubsub",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/trace.append"
]
}
}