Skip to content

Commit

Permalink
Adding port 19530 for direct ingress from the ECS api that's in the s…
Browse files Browse the repository at this point in the history
…ame vpc
  • Loading branch information
Miguel Elhaiek committed Apr 5, 2024
1 parent 4c81e3c commit 8476aaa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,26 @@ resource "aws_security_group" "milvus_sg_api" {
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["186.141.232.131/32"] // Replace ONLY your public IP address
cidr_blocks = ["186.141.232.131/32"] # SSH access from your IP
}

ingress {
from_port = 19530
to_port = 19530
protocol = "tcp"
security_groups = ["sg-0a1df98d80c5fbfa9"] # ECS tasks security group ID >> Direct ingress from ECS app
}

egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
cidr_blocks = ["0.0.0.0/0"] # Allow all outbound traffic
}
}



# Modify your EC2 instance security group to only allow traffic from the NLB security group
resource "aws_security_group_rule" "allow_nlb_to_ec2" {
type = "ingress"
Expand Down

0 comments on commit 8476aaa

Please sign in to comment.