clong / DetectionLab

Automate the creation of a lab environment complete with security tooling and logging best practices
MIT License
4.59k stars 979 forks source link

aws terraform makes a logger with no splunk #829

Closed ezzeldinadel closed 2 years ago

ezzeldinadel commented 2 years ago

Please verify that you are building from an updated Master branch before filing an issue.

no splunk installed on logger - no error on terraform about splunk

only errors from terraform apply are are as follows:

│ Warning: Argument is deprecated │ │ with provider["registry.terraform.io/hashicorp/aws"], │ on main.tf line 3, in provider "aws": │ 3: shared_credentials_file = var.shared_credentials_file Use shared_credentials_files instead. [0/1077] ╵ ╷ │ Error: remote-exec provisioner error │ │ with aws_instance.logger, │ on main.tf line 184, in resource "aws_instance" "logger": │ 184: provisioner "remote-exec" { │ │ timeout - last error: dial tcp 54.226.224.17:22: i/o timeout ╵ ╷ │ Error: file provisioner error │ │ with aws_instance.dc, │ on main.tf line 220, in resource "aws_instance" "dc": │ 220: provisioner "file" { │ │ timeout - last error: unknown error Post "http://3.85.88.175:5985/wsman": dial tcp 3.85.88.175:5985: i/o timeout ╵ ╷ │ Error: file provisioner error │ │ with aws_instance.wef, │ on main.tf line 266, in resource "aws_instance" "wef": │ 266: provisioner "file" { │ │ timeout - last error: unknown error Post "http://54.162.127.3:5985/wsman": dial tcp 54.162.127.3:5985: i/o timeout ╵ ╷ │ Error: file provisioner error │ │ with aws_instance.win10, │ on main.tf line 312, in resource "aws_instance" "win10": │ 312: provisioner "file" { │ │ timeout - last error: unknown error Post "http://54.156.49.61:5985/wsman": dial tcp 54.156.49.61:5985: i/o timeout

clong commented 2 years ago

Hello,

You need to fill out the ip_whitelist in terraform.tfvars. Your machine is failing to connect to SSH due to this.