2018-12-19 01:35:14 +08:00
|
|
|
|
|
|
|
// Local variables
|
|
|
|
locals {
|
2019-11-27 19:41:02 +08:00
|
|
|
default_ubuntu=google_compute_instance_template.ubuntu16.self_link
|
|
|
|
default_windows=google_compute_instance_template.windows2016.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_network" "monkeyzoo" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}monkeyzoo"
|
2018-12-19 01:35:14 +08:00
|
|
|
auto_create_subnetworks = false
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_network" "tunneling" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}tunneling"
|
2018-12-19 01:35:14 +08:00
|
|
|
auto_create_subnetworks = false
|
|
|
|
}
|
|
|
|
|
2019-08-25 23:33:21 +08:00
|
|
|
resource "google_compute_network" "tunneling2" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}tunneling2"
|
2019-08-25 23:33:21 +08:00
|
|
|
auto_create_subnetworks = false
|
|
|
|
}
|
|
|
|
|
2018-12-19 01:35:14 +08:00
|
|
|
resource "google_compute_subnetwork" "monkeyzoo-main" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
ip_cidr_range = "10.2.2.0/24"
|
2019-11-27 19:41:02 +08:00
|
|
|
network = google_compute_network.monkeyzoo.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
|
2021-08-24 17:56:09 +08:00
|
|
|
resource "google_compute_subnetwork" "monkeyzoo-main-1" {
|
|
|
|
name = "${local.resource_prefix}monkeyzoo-main-1"
|
|
|
|
ip_cidr_range = "10.2.3.0/24"
|
|
|
|
network = google_compute_network.monkeyzoo.self_link
|
|
|
|
}
|
|
|
|
|
2018-12-19 01:35:14 +08:00
|
|
|
resource "google_compute_subnetwork" "tunneling-main" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}tunneling-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
ip_cidr_range = "10.2.1.0/28"
|
2019-11-27 19:41:02 +08:00
|
|
|
network = google_compute_network.tunneling.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 23:33:21 +08:00
|
|
|
resource "google_compute_subnetwork" "tunneling2-main" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}tunneling2-main"
|
2019-08-25 23:33:21 +08:00
|
|
|
ip_cidr_range = "10.2.0.0/27"
|
2019-11-27 19:41:02 +08:00
|
|
|
network = google_compute_network.tunneling2.self_link
|
2019-08-25 23:33:21 +08:00
|
|
|
}
|
|
|
|
|
2022-09-20 23:52:00 +08:00
|
|
|
resource "google_compute_subnetwork" "credential-reuse" {
|
|
|
|
name = "${local.resource_prefix}credential-reuse"
|
|
|
|
ip_cidr_range = "10.2.4.0/24"
|
|
|
|
network = google_compute_network.credential-reuse.self_link
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_subnetwork" "credential-reuse2" {
|
|
|
|
name = "${local.resource_prefix}credential-reuse2"
|
|
|
|
ip_cidr_range = "10.2.5.0/24"
|
|
|
|
network = google_compute_network.credential-reuse2.self_link
|
|
|
|
}
|
|
|
|
|
2018-12-19 01:35:14 +08:00
|
|
|
resource "google_compute_instance_from_template" "hadoop-2" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}hadoop-2"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_ubuntu
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.hadoop-2.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.2"
|
|
|
|
}
|
2018-12-20 17:10:39 +08:00
|
|
|
// Add required ssh keys for hadoop service and restart it
|
|
|
|
metadata_startup_script = "[ ! -f /home/vakaris_zilius/.ssh/authorized_keys ] && sudo cat /home/vakaris_zilius/.ssh/id_rsa.pub >> /home/vakaris_zilius/.ssh/authorized_keys && sudo reboot"
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2019-01-23 22:55:53 +08:00
|
|
|
|
2018-12-19 01:35:14 +08:00
|
|
|
resource "google_compute_instance_from_template" "hadoop-3" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}hadoop-3"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_windows
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.hadoop-3.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.3"
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 22:55:53 +08:00
|
|
|
|
2018-12-19 01:35:14 +08:00
|
|
|
resource "google_compute_instance_from_template" "tunneling-9" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}tunneling-9"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_ubuntu
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.tunneling-9.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface{
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}tunneling-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.1.9"
|
|
|
|
}
|
|
|
|
network_interface{
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.9"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "tunneling-10" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}tunneling-10"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_ubuntu
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.tunneling-10.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface{
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}tunneling-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.1.10"
|
|
|
|
}
|
2019-08-25 23:33:21 +08:00
|
|
|
network_interface{
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}tunneling2-main"
|
2019-08-25 23:33:21 +08:00
|
|
|
network_ip="10.2.0.10"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "tunneling-11" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}tunneling-11"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_ubuntu
|
2019-08-25 23:33:21 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.tunneling-11.self_link
|
2019-08-25 23:33:21 +08:00
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface{
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}tunneling2-main"
|
2019-08-25 23:33:21 +08:00
|
|
|
network_ip="10.2.0.11"
|
|
|
|
}
|
2022-09-14 03:52:04 +08:00
|
|
|
network_interface{
|
|
|
|
subnetwork="${local.resource_prefix}tunneling-main"
|
|
|
|
network_ip="10.2.1.11"
|
|
|
|
}
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
|
2020-04-08 17:14:33 +08:00
|
|
|
resource "google_compute_instance_from_template" "tunneling-12" {
|
|
|
|
name = "${local.resource_prefix}tunneling-12"
|
|
|
|
source_instance_template = local.default_windows
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.tunneling-12.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface{
|
|
|
|
subnetwork="${local.resource_prefix}tunneling2-main"
|
|
|
|
network_ip="10.2.0.12"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-08 21:56:32 +08:00
|
|
|
resource "google_compute_instance_from_template" "tunneling-13" {
|
|
|
|
name = "${local.resource_prefix}tunneling-13"
|
|
|
|
source_instance_template = local.default_ubuntu
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.tunneling-13.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface{
|
|
|
|
subnetwork="${local.resource_prefix}tunneling2-main"
|
|
|
|
network_ip="10.2.0.13"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-19 01:35:14 +08:00
|
|
|
resource "google_compute_instance_from_template" "sshkeys-11" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}sshkeys-11"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_ubuntu
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.sshkeys-11.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.11"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "sshkeys-12" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}sshkeys-12"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_ubuntu
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.sshkeys-12.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.12"
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 22:55:53 +08:00
|
|
|
|
2018-12-19 01:35:14 +08:00
|
|
|
/*
|
|
|
|
resource "google_compute_instance_from_template" "rdpgrinder-13" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}rdpgrinder-13"
|
2018-12-19 01:35:14 +08:00
|
|
|
source_instance_template = "${local.default_windows}"
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = "${data.google_compute_image.rdpgrinder-13.self_link}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.13"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "mimikatz-14" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}mimikatz-14"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_windows
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.mimikatz-14.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.14"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "mimikatz-15" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}mimikatz-15"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_windows
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.mimikatz-15.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-20 17:10:39 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.15"
|
|
|
|
}
|
|
|
|
}
|
2018-12-20 17:10:39 +08:00
|
|
|
|
2018-12-19 01:35:14 +08:00
|
|
|
resource "google_compute_instance_from_template" "mssql-16" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}mssql-16"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_windows
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.mssql-16.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.16"
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 22:55:53 +08:00
|
|
|
|
2021-09-24 21:29:11 +08:00
|
|
|
resource "google_compute_instance_from_template" "powershell-3-48" {
|
|
|
|
name = "${local.resource_prefix}powershell-3-48"
|
|
|
|
source_instance_template = local.default_windows
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.powershell-3-48.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main-1"
|
|
|
|
network_ip="10.2.3.48"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-02 23:06:22 +08:00
|
|
|
resource "google_compute_instance_from_template" "powershell-3-47" {
|
|
|
|
name = "${local.resource_prefix}powershell-3-47"
|
|
|
|
source_instance_template = local.default_windows
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.powershell-3-47.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main-1"
|
|
|
|
network_ip="10.2.3.47"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-24 21:11:22 +08:00
|
|
|
resource "google_compute_instance_from_template" "powershell-3-46" {
|
|
|
|
name = "${local.resource_prefix}powershell-3-46"
|
2021-08-24 17:56:09 +08:00
|
|
|
source_instance_template = local.default_windows
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2021-08-24 21:11:22 +08:00
|
|
|
image = data.google_compute_image.powershell-3-46.self_link
|
2021-08-24 17:56:09 +08:00
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main-1"
|
2021-08-24 21:11:22 +08:00
|
|
|
network_ip="10.2.3.46"
|
2021-08-24 17:56:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-26 17:19:32 +08:00
|
|
|
resource "google_compute_instance_from_template" "powershell-3-44" {
|
|
|
|
name = "${local.resource_prefix}powershell-3-44"
|
|
|
|
source_instance_template = local.default_windows
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.powershell-3-44.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main-1"
|
|
|
|
network_ip="10.2.3.44"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-24 21:11:22 +08:00
|
|
|
resource "google_compute_instance_from_template" "powershell-3-45" {
|
|
|
|
name = "${local.resource_prefix}powershell-3-45"
|
2021-08-24 17:56:09 +08:00
|
|
|
source_instance_template = local.default_windows
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2021-08-24 21:11:22 +08:00
|
|
|
image = data.google_compute_image.powershell-3-45.self_link
|
2021-08-24 17:56:09 +08:00
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
2022-09-20 23:52:00 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main-1"
|
2021-08-24 21:11:22 +08:00
|
|
|
network_ip="10.2.3.45"
|
2021-08-24 17:56:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-20 23:52:00 +08:00
|
|
|
resource "google_compute_instance_from_template" "credentials-reuse-14" {
|
|
|
|
name = "${local.resource_prefix}credentials-reuse-14"
|
|
|
|
source_instance_template = local.default_linux
|
2022-01-07 21:27:50 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2022-09-20 23:52:00 +08:00
|
|
|
image = data.google_compute_image.credentials-reuse-14.self_link
|
2022-01-07 21:27:50 +08:00
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
2022-09-20 23:52:00 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main-1"
|
|
|
|
network_ip="10.2.3.14"
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}credential-reuse"
|
|
|
|
network_ip="10.2.4.14"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "credentials-reuse-15" {
|
|
|
|
name = "${local.resource_prefix}credentials-reuse-15"
|
|
|
|
source_instance_template = local.default_linux
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.credentials-reuse-15.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}credential-reuse"
|
|
|
|
network_ip="10.2.4.15"
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}credential-reuse2"
|
|
|
|
network_ip="10.2.5.15"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "credentials-reuse-16" {
|
|
|
|
name = "${local.resource_prefix}credentials-reuse-16"
|
|
|
|
source_instance_template = local.default_linux
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.credentials-reuse-16.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}credential-reuse2"
|
|
|
|
network_ip="10.2.5.16"
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main-1"
|
|
|
|
network_ip="10.2.3.16"
|
2022-01-07 21:27:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "log4j-solr-49" {
|
|
|
|
name = "${local.resource_prefix}log4j-solr-49"
|
|
|
|
source_instance_template = local.default_linux
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.log4j-solr-49.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
|
|
|
network_ip="10.2.3.49"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "log4j-solr-50" {
|
|
|
|
name = "${local.resource_prefix}log4j-solr-50"
|
|
|
|
source_instance_template = local.default_windows
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.log4j-solr-50.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
|
|
|
network_ip="10.2.3.50"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-10 21:17:48 +08:00
|
|
|
resource "google_compute_instance_from_template" "log4j-tomcat-51" {
|
|
|
|
name = "${local.resource_prefix}log4j-tomcat-51"
|
|
|
|
source_instance_template = local.default_linux
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.log4j-tomcat-51.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
|
|
|
network_ip="10.2.3.51"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "log4j-tomcat-52" {
|
|
|
|
name = "${local.resource_prefix}log4j-tomcat-52"
|
|
|
|
source_instance_template = local.default_windows
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.log4j-tomcat-52.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
|
|
|
network_ip="10.2.3.52"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-13 18:37:22 +08:00
|
|
|
resource "google_compute_instance_from_template" "log4j-logstash-55" {
|
|
|
|
name = "${local.resource_prefix}log4j-logstash-55"
|
|
|
|
source_instance_template = local.default_linux
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.log4j-logstash-55.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
|
|
|
network_ip="10.2.3.55"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "log4j-logstash-56" {
|
|
|
|
name = "${local.resource_prefix}log4j-logstash-56"
|
|
|
|
source_instance_template = local.default_windows
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.log4j-logstash-56.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
|
|
|
network_ip="10.2.3.56"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-19 01:35:14 +08:00
|
|
|
resource "google_compute_instance_from_template" "scan-21" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}scan-21"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_ubuntu
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.scan-21.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.21"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "scan-22" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}scan-22"
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_windows
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.scan-22.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.22"
|
|
|
|
}
|
|
|
|
}
|
2019-01-23 22:55:53 +08:00
|
|
|
|
2020-11-03 22:11:51 +08:00
|
|
|
resource "google_compute_instance_from_template" "zerologon-25" {
|
|
|
|
name = "${local.resource_prefix}zerologon-25"
|
|
|
|
source_instance_template = local.default_windows
|
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
|
|
|
image = data.google_compute_image.zerologon-25.self_link
|
|
|
|
}
|
|
|
|
auto_delete = true
|
|
|
|
}
|
|
|
|
network_interface {
|
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
|
|
|
network_ip="10.2.2.25"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-19 01:35:14 +08:00
|
|
|
resource "google_compute_instance_from_template" "island-linux-250" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}island-linux-250"
|
2018-12-19 01:35:14 +08:00
|
|
|
machine_type = "n1-standard-2"
|
2019-01-23 22:55:53 +08:00
|
|
|
tags = ["island", "linux", "ubuntu16"]
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_ubuntu
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.island-linux-250.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.250"
|
|
|
|
access_config {
|
2018-12-19 03:08:00 +08:00
|
|
|
// Cheaper, non-premium routing (not available in some regions)
|
|
|
|
// network_tier = "STANDARD"
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "google_compute_instance_from_template" "island-windows-251" {
|
2019-09-03 22:22:07 +08:00
|
|
|
name = "${local.resource_prefix}island-windows-251"
|
2018-12-19 01:35:14 +08:00
|
|
|
machine_type = "n1-standard-2"
|
2019-01-23 22:55:53 +08:00
|
|
|
tags = ["island", "windows", "windowsserver2016"]
|
2019-11-27 19:41:02 +08:00
|
|
|
source_instance_template = local.default_windows
|
2018-12-19 01:35:14 +08:00
|
|
|
boot_disk{
|
|
|
|
initialize_params {
|
2019-11-27 19:41:02 +08:00
|
|
|
image = data.google_compute_image.island-windows-251.self_link
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
2018-12-19 22:28:59 +08:00
|
|
|
auto_delete = true
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
network_interface {
|
2019-09-04 15:19:36 +08:00
|
|
|
subnetwork="${local.resource_prefix}monkeyzoo-main"
|
2018-12-19 01:35:14 +08:00
|
|
|
network_ip="10.2.2.251"
|
|
|
|
access_config {
|
2018-12-19 03:08:00 +08:00
|
|
|
// Cheaper, non-premium routing (not available in some regions)
|
|
|
|
// network_tier = "STANDARD"
|
2018-12-19 01:35:14 +08:00
|
|
|
}
|
|
|
|
}
|
2019-08-25 23:33:21 +08:00
|
|
|
}
|