forked from bridgecrewio/terragoat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instances.tf
48 lines (45 loc) · 1.55 KB
/
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
45
46
47
48
data "google_compute_zones" "zones" {}
resource "google_compute_instance" "server" {
machine_type = "n1-standard-1"
name = "terragoat-${var.environment}-machine"
zone = data.google_compute_zones.zones.names[0]
boot_disk {
initialize_params {
image = "debian-cloud/debian-9"
}
auto_delete = true
}
network_interface {
subnetwork = google_compute_subnetwork.public-subnetwork.name
access_config {}
}
can_ip_forward = true
metadata = {
block-project-ssh-keys = false
enable-oslogin = false
serial-port-enable = true
}
labels = {
git_commit = "2bdc0871a5f4505be58244029cc6485d45d7bb8e"
git_file = "terraform__gcp__instances_tf"
git_last_modified_at = "2022-01-19-17-02-27"
git_last_modified_by = "jameswoolfenden"
git_modifiers = "jameswoolfenden__nimrodkor"
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "cd562b76-fbce-4e60-8c75-c9f43d7ffc16"
}
}
resource "google_compute_disk" "unencrypted_disk" {
name = "terragoat-${var.environment}-disk"
labels = {
git_commit = "2bdc0871a5f4505be58244029cc6485d45d7bb8e"
git_file = "terraform__gcp__instances_tf"
git_last_modified_at = "2022-01-19-17-02-27"
git_last_modified_by = "jameswoolfenden"
git_modifiers = "jameswoolfenden__nimrodkor"
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "bf87b7d7-a9d8-4f03-a0d4-8a4cbb647d03"
}
}