Skip to content

Commit f36dc79

Browse files
Add db_iam_username variable for PostgreSQL IAM authentication
This variable allows specifying a separate database username for IAM authentication when postgres_enable_iam_auth=true. If null, it uses the db_username (master user). Required for passwordless PostgreSQL authentication tests.
1 parent 2797214 commit f36dc79

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ variable "db_username" {
222222
description = "PostgreSQL instance username. No special characters."
223223
}
224224

225+
variable "db_iam_username" {
226+
default = null
227+
type = string
228+
description = "PostgreSQL IAM username for TFE connection when IAM auth is enabled. If null, uses db_username. No special characters."
229+
}
230+
225231
variable "db_backup_retention" {
226232
type = number
227233
description = "The days to retain backups for. Must be between 0 and 35"

0 commit comments

Comments
 (0)