Skip to content

Commit

Permalink
Merge pull request #29 from babbel/fmasuhr-patch-1
Browse files Browse the repository at this point in the history
Properly URL encode input for database URL
  • Loading branch information
fmasuhr authored Oct 16, 2024
2 parents bdb4a45 + da4991a commit 391fdd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ resource "aws_secretsmanager_secret" "this" {
resource "aws_secretsmanager_secret_version" "this" {
secret_id = aws_secretsmanager_secret.this.arn

secret_string = "${var.protocol}://${local.username}:${local.password}@${local.server}/${var.database_name}"
secret_string = "${var.protocol}://${urlencode(local.username)}:${urlencode(local.password)}@${local.server}/${urlencode(var.database_name)}"
}

0 comments on commit 391fdd7

Please sign in to comment.