Skip to content

Commit d0e570f

Browse files
author
marycrawford
committed
uncomment subnet and security group attribute for db
1 parent 7274f66 commit d0e570f

File tree

1 file changed

+10
-10
lines changed
  • terraform/aws/implementation/modules/rds

1 file changed

+10
-10
lines changed

terraform/aws/implementation/modules/rds/main.tf

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Define the RDS instance for Postgres
22
resource "aws_db_instance" "query-templates" {
3-
identifier = var.db_identifier
4-
instance_class = "db.t3.micro"
5-
allocated_storage = 5
6-
engine = var.engine_type
7-
engine_version = var.engine_version
8-
username = var.db_username
9-
password = random_string.setup_rds_password.result
10-
#db_subnet_group_name = aws_db_subnet_group.this.name
11-
#vpc_security_group_ids = var.private_subnet_ids
3+
identifier = var.db_identifier
4+
instance_class = "db.t3.micro"
5+
allocated_storage = 5
6+
engine = var.engine_type
7+
engine_version = var.engine_version
8+
username = var.db_username
9+
password = random_string.setup_rds_password.result
10+
db_subnet_group_name = aws_db_subnet_group.this.name
11+
vpc_security_group_ids = var.private_subnet_ids
1212
parameter_group_name = aws_db_parameter_group.this.name
1313
publicly_accessible = false
1414
skip_final_snapshot = true
@@ -64,7 +64,7 @@ resource "aws_db_subnet_group" "this" {
6464

6565
}
6666

67-
# TODO: Consider updating for Production to AWS Secrets Manager
67+
# TODO: Update for Production to AWS Secrets Manager
6868
# This resource's attribute(s) default value is true
6969
resource "random_string" "setup_rds_password" {
7070
length = 13 #update as needed

0 commit comments

Comments
 (0)