Skip to content

Commit f48f824

Browse files
authored
fix: Allow setting master_username when using manage_master_user_password (#369)
1 parent 0dd4a5c commit f48f824

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.77.1
3+
rev: v1.77.2
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ resource "aws_rds_cluster" "this" {
6868
manage_master_user_password = var.global_cluster_identifier == null && var.manage_master_user_password ? var.manage_master_user_password : null
6969
master_user_secret_kms_key_id = var.global_cluster_identifier == null && var.manage_master_user_password ? var.master_user_secret_kms_key_id : null
7070
master_password = var.is_primary_cluster && !var.manage_master_user_password ? var.master_password : null
71-
master_username = var.is_primary_cluster && !var.manage_master_user_password ? var.master_username : null
71+
master_username = var.is_primary_cluster ? var.master_username : null
7272
network_type = var.network_type
7373
port = local.port
7474
preferred_backup_window = local.is_serverless ? null : var.preferred_backup_window

0 commit comments

Comments
 (0)