Skip to content

Commit

Permalink
Adding new port to NLB security group to be able to listen and forwar…
Browse files Browse the repository at this point in the history
…d to Fargate API
  • Loading branch information
Miguel Elhaiek committed Apr 3, 2024
1 parent fa01b0f commit d01b41e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,22 @@ 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
protocol = "tcp"
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
Expand All @@ -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"
Expand Down

0 comments on commit d01b41e

Please sign in to comment.