From d01b41e00754a5fa569e2d3cf915628a06271950 Mon Sep 17 00:00:00 2001 From: Miguel Elhaiek Date: Wed, 3 Apr 2024 18:54:08 -0300 Subject: [PATCH] Adding new port to NLB security group to be able to listen and forward to Fargate API --- terraform/main.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/terraform/main.tf b/terraform/main.tf index 3a966e2..554fdee 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -95,6 +95,7 @@ resource "aws_security_group" "nlb_sg" { description = "Security group for NLB" vpc_id = aws_vpc.vectorstore_vpc.id +# port for ec2 milvus listener ingress { from_port = 19530 to_port = 19530 @@ -102,6 +103,14 @@ resource "aws_security_group" "nlb_sg" { cidr_blocks = ["0.0.0.0/0"] } +# port for ECS fargate container API: + ingress { + from_port = 19531 + to_port = 19531 + protocol = "tcp" + cidr_blocks = ["0.0.0.0/0"] + } + egress { from_port = 0 to_port = 0 @@ -110,6 +119,7 @@ resource "aws_security_group" "nlb_sg" { } } + resource "aws_security_group" "milvus_sg_api" { name = "milvus-sg-api" description = "Security group for Milvus deployment with Docker for API"