Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brunodasilvalenga committed Feb 23, 2024
1 parent bc843ed commit 8abbd09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion nlb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "aws_lb" "ecs" {
internal = false
name = "ecs-${var.name}"
subnets = var.public_subnet_ids
security_groups = length(var.nlb_security_group_ids) > 0 ? var.nlb_security_group_ids : [aws_security_group.nlb.id]
security_groups = length(var.nlb_security_group_ids) > 0 ? var.nlb_security_group_ids : [aws_security_group.nlb.id]

idle_timeout = 400

Expand Down
16 changes: 8 additions & 8 deletions sg-nlb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ resource "aws_security_group" "nlb" {
}

resource "aws_security_group_rule" "nlb_from_internet" {
description = "Traffic from Internet"
type = "ingress"
from_port = 1194
to_port = 1194
protocol = "-1"
security_group_id = aws_security_group.nlb.id
description = "Traffic from Internet"
type = "ingress"
from_port = 1194
to_port = 1194
protocol = "-1"
security_group_id = aws_security_group.nlb.id
cidr_blocks = ["0.0.0.0/0"]
}

resource "aws_security_group_rule" "nlb_to_internet" {
description = "Traffic to internet"
type = "egress"
from_port = 1194
to_port = 1194
from_port = 1194
to_port = 1194
protocol = "-1"
security_group_id = aws_security_group.nlb.id
cidr_blocks = ["0.0.0.0/0"]
Expand Down

0 comments on commit 8abbd09

Please sign in to comment.