Skip to content

Commit

Permalink
Merge pull request #790 from splunk/fix_sysmon_linux
Browse files Browse the repository at this point in the history
fixed issue with empty host
  • Loading branch information
P4T12ICK committed Apr 26, 2023
2 parents fa5edd7 + a2459dd commit e70e6ee
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y python3.8 git unzip python3-pip awscli curl vim lsb-release software-properties-common

RUN curl -s https://releases.hashicorp.com/terraform/1.1.8/terraform_1.1.8_linux_amd64.zip -o terraform.zip && \
RUN curl -s https://releases.hashicorp.com/terraform/1.4.5/terraform_1.4.5_linux_amd64.zip -o terraform.zip && \
unzip terraform.zip && \
mv terraform /usr/local/bin/

Expand Down
2 changes: 2 additions & 0 deletions terraform/aws/modules/kali-server/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ resource "aws_instance" "kali_machine" {
subnet_id = var.ec2_subnet_id
vpc_security_group_ids = [var.vpc_security_group_ids]
private_ip = "10.0.1.30"
associate_public_ip_address = true

tags = {
Name = "ar-kali-${var.general.key_name}-${var.general.attack_range_name}"
}
Expand Down
1 change: 1 addition & 0 deletions terraform/aws/modules/linux-server/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ resource "aws_instance" "linux_server" {
subnet_id = var.ec2_subnet_id
vpc_security_group_ids = [var.vpc_security_group_ids]
private_ip = "10.0.1.${21 + count.index}"
associate_public_ip_address = true

root_block_device {
volume_type = "gp2"
Expand Down
3 changes: 2 additions & 1 deletion terraform/aws/modules/nginx-server/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ resource "aws_instance" "nginx_server" {
subnet_id = var.ec2_subnet_id
vpc_security_group_ids = [var.vpc_security_group_ids]
private_ip = "10.0.1.31"

associate_public_ip_address = true

root_block_device {
volume_type = "gp2"
volume_size = "20"
Expand Down
1 change: 1 addition & 0 deletions terraform/aws/modules/phantom-server/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ resource "aws_instance" "phantom-server" {
subnet_id = var.ec2_subnet_id
vpc_security_group_ids = [var.vpc_security_group_ids]
private_ip = "10.0.1.13"
associate_public_ip_address = true
root_block_device {
volume_type = "gp2"
volume_size = "30"
Expand Down
1 change: 1 addition & 0 deletions terraform/aws/modules/windows/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ resource "aws_instance" "windows_server" {
subnet_id = var.ec2_subnet_id
private_ip = "10.0.1.${14 + count.index}"
vpc_security_group_ids = [var.vpc_security_group_ids]
associate_public_ip_address = true
tags = {
Name = "ar-win-${var.general.key_name}-${var.general.attack_range_name}-${count.index}"
}
Expand Down
2 changes: 2 additions & 0 deletions terraform/aws/modules/zeek-server/ressources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ resource "aws_instance" "zeek_sensor" {
subnet_id = var.ec2_subnet_id
vpc_security_group_ids = [var.vpc_security_group_ids]
private_ip = "10.0.1.50"
associate_public_ip_address = true

tags = {
Name = "ar-zeek-${var.general.key_name}-${var.general.attack_range_name}"
}
Expand Down

0 comments on commit e70e6ee

Please sign in to comment.