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

Add egress rules (vpc only) for health checks of the alb #15

Merged
merged 1 commit into from
Nov 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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