From 39f589d505e7800bb4641c5711105d48c37e0e1f Mon Sep 17 00:00:00 2001 From: Alis Akers <94012653+alismx@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:25:42 -0700 Subject: [PATCH] use rds security group (#84) --- terraform/aws/implementation/modules/rds/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/aws/implementation/modules/rds/main.tf b/terraform/aws/implementation/modules/rds/main.tf index 70414b75..e64f9c61 100644 --- a/terraform/aws/implementation/modules/rds/main.tf +++ b/terraform/aws/implementation/modules/rds/main.tf @@ -8,7 +8,7 @@ resource "aws_db_instance" "tefca-viewer-db" { username = var.db_username password = random_string.setup_rds_password.result db_subnet_group_name = aws_db_subnet_group.this.name - vpc_security_group_ids = var.private_subnet_ids + vpc_security_group_ids = [aws_security_group.ds_sg.id] parameter_group_name = aws_db_parameter_group.this.name publicly_accessible = false skip_final_snapshot = true