Skip to content

Commit d39c573

Browse files
authored
docs: Adjust cross-region-replica-postgres example code (#554)
Fix cross-region-replica-postgres example code
1 parent 3ba7984 commit d39c573

File tree

1 file changed

+3
-1
lines changed
  • examples/cross-region-replica-postgres

1 file changed

+3
-1
lines changed

examples/cross-region-replica-postgres/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,15 @@ module "replica" {
112112
allocated_storage = local.allocated_storage
113113
max_allocated_storage = local.max_allocated_storage
114114

115-
password = "UberSecretPassword"
116115
# Not supported with replicas
117116
manage_master_user_password = false
118117

119118
# Username and password should not be set for replicas
120119
port = local.port
121120

121+
# parameter group for replica is inherited from the source database
122+
create_db_parameter_group = false
123+
122124
multi_az = false
123125
vpc_security_group_ids = [module.security_group_region2.security_group_id]
124126

0 commit comments

Comments
 (0)