Skip to content

Commit

Permalink
update zeek AWS terraform to respect Elastic IP usage config
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpc500 committed Jan 15, 2024
1 parent 51c6681 commit b4369b7
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 b4369b7

Please sign in to comment.