forked from VincentHokie/gcdc-terraform-session
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instances.tf
44 lines (34 loc) · 810 Bytes
/
instances.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
resource "google_compute_instance" "allow-ping-instance" {
name = "test-allow-ping"
machine_type = "n1-standard-1"
zone = "us-central1-a"
tags = ["allow-ping"]
boot_disk {
initialize_params {
image = "debian-cloud/debian-9"
}
}
network_interface {
network = "${google_compute_network.gcdc-network.name}"
access_config {
nat_ip = ""
}
}
}
resource "google_compute_instance" "deny-ping-instance" {
name = "test-deny-ping"
machine_type = "n1-standard-1"
zone = "us-central1-a"
tags = ["deny-ping"]
boot_disk {
initialize_params {
image = "debian-cloud/debian-9"
}
}
network_interface {
network = "${google_compute_network.gcdc-network.name}"
access_config {
nat_ip = ""
}
}
}