Skip to content

Commit aa1fdda

Browse files
committed
outputs: stop URL-encoding credentials in db_connection_uri; update README; include deletion_protection in instance
1 parent 65a7e18 commit aa1fdda

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ resource "aws_db_instance" "this" {
6060
maintenance_window = var.maintenance_window
6161

6262
skip_final_snapshot = var.skip_final_snapshot
63+
deletion_protection = var.deletion_protection
6364

6465
tags = var.tags
6566
}

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ output "db_connection_uri" {
3838
description = "PostgreSQL connection URI including credentials (sensitive)"
3939
value = format(
4040
"postgresql://%s:%s@%s:%d/%s",
41-
urlencode(var.username),
42-
urlencode(random_password.master.result),
41+
var.username,
42+
random_password.master.result,
4343
aws_db_instance.this.address,
4444
aws_db_instance.this.port,
4545
var.database_name,

0 commit comments

Comments
 (0)