Skip to content

Commit

Permalink
Merge pull request #871 from ajpc500/zeek_eip_fix
Browse files Browse the repository at this point in the history
Update Zeek AWS terraform to respect Elastic IP usage config
  • Loading branch information
P4T12ICK committed Jan 19, 2024
2 parents 99dfde4 + b4369b7 commit 29ee718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/aws/modules/zeek-server/ressources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ resource "aws_instance" "zeek_sensor" {
}

resource "aws_eip" "zeek_ip" {
count = var.zeek_server.zeek_server == "1" ? 1 : 0
instance = aws_instance.zeek_sensor[0].id
count = (var.zeek_server.zeek_server == "1") && (var.aws.use_elastic_ips == "1") ? 1 : 0
instance = aws_instance.zeek_sensor[0].id
}

resource "aws_ec2_traffic_mirror_target" "zeek_target" {
Expand Down

0 comments on commit 29ee718

Please sign in to comment.