From 096bc69b58eb314ac29ab1f726b1b882a0b2add3 Mon Sep 17 00:00:00 2001 From: Rin Concordia Date: Tue, 8 Oct 2024 13:16:57 -0500 Subject: [PATCH] Convert random_string to random_password. --- terraform/aws/implementation/modules/rds/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/aws/implementation/modules/rds/main.tf b/terraform/aws/implementation/modules/rds/main.tf index e64f9c61..f1631ad0 100644 --- a/terraform/aws/implementation/modules/rds/main.tf +++ b/terraform/aws/implementation/modules/rds/main.tf @@ -6,7 +6,7 @@ resource "aws_db_instance" "tefca-viewer-db" { engine = var.engine_type engine_version = var.engine_version username = var.db_username - password = random_string.setup_rds_password.result + password = random_password.setup_rds_password.result db_subnet_group_name = aws_db_subnet_group.this.name vpc_security_group_ids = [aws_security_group.ds_sg.id] parameter_group_name = aws_db_parameter_group.this.name @@ -64,7 +64,7 @@ resource "aws_db_subnet_group" "this" { # TODO: Update for Production to AWS Secrets Manager # This resource's attribute(s) default value is true -resource "random_string" "setup_rds_password" { +resource "random_password" "setup_rds_password" { length = 13 #update as needed # Character set that excludes problematic characters like quotes, backslashes, etc.