ECS scripts to deploy single port mode

This commit is contained in:
David Zhao
2021-04-12 22:46:29 -07:00
parent c2777cd556
commit 6c5bd4ce42
4 changed files with 25 additions and 9 deletions
+11 -3
View File
@@ -8,17 +8,25 @@ resource "aws_security_group" "main" {
vpc_id = data.aws_vpc.main.id
ingress {
description = "UDP port for ICE"
description = "UDP port range for ICE"
from_port = var.udp_port_start
to_port = var.udp_port_end
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
description = "UDP port for ICE"
from_port = var.rtc_udp_port
to_port = var.rtc_udp_port
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
description = "TCP port for ICE"
from_port = var.ice_tcp_port
to_port = var.ice_tcp_port
from_port = var.rtc_tcp_port
to_port = var.rtc_tcp_port
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}