From c6362f891800b12f38b59393dd883da219652aec Mon Sep 17 00:00:00 2001 From: prashansa joshi Date: Fri, 20 Sep 2024 15:30:30 +0545 Subject: [PATCH] modified .env and added the port --- terraform/sg.tf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/terraform/sg.tf b/terraform/sg.tf index e7f5cdd..ccc3a9c 100644 --- a/terraform/sg.tf +++ b/terraform/sg.tf @@ -46,10 +46,12 @@ resource "aws_security_group" "database" { # vpc_id = module.vpc.vpc_id ingress { - description = "TLS from VPC" - from_port = 3306 - to_port = 3306 - protocol = "tcp" + description = "TLS from VPC" + from_port = 3306 + to_port = 3306 + protocol = "tcp" + cidr_blocks = ["0.0.0.0/0"] + # cidr_blocks = local.vpc.vpc_cidr # security_groups = [aws_security_group.backend_asg.id] }