Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert random_string to random_password in RDS module. #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions terraform/aws/implementation/modules/rds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Loading