Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Merge pull request #15 from philips-software/loadbalancer-should-allo…
Browse files Browse the repository at this point in the history
…w-outgoing-traffic

Add egress rules (vpc only) for health checks of the alb
  • Loading branch information
mpas authored Nov 20, 2018
2 parents cdc91d1 + 7926956 commit 7554191
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ resource "aws_security_group" "security_group_alb" {
cidr_blocks = ["${var.internal_alb ? data.aws_vpc.selected.cidr_block : "0.0.0.0/0"}"]
}

# allow all outgoing traffic
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["${data.aws_vpc.selected.cidr_block}"]
}

tags = "${merge(map("Name", format("%s", "${var.environment}-${var.service_name}")),
map("Environment", format("%s", var.environment)),
map("Project", format("%s", var.project)),
Expand Down

0 comments on commit 7554191

Please sign in to comment.