File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 8
8
Department = " Engineering"
9
9
}
10
10
store_password_to_secret_manager = true
11
- custom_credentials_enabled = true
11
+ custom_credentials_enabled = false
12
12
custom_credentials_config = {
13
13
postgres_password = " 60rbJs901a6Oa9hzUM5x7s8Q"
14
14
repmgr_password = " IWHLlEYOt25jL4Io7pancB"
@@ -35,9 +35,5 @@ module "postgresql" {
35
35
storage_class = " gp2"
36
36
postgresql_values = file (" ./helm/postgresql.yaml" )
37
37
store_password_to_secret_manager = local.store_password_to_secret_manager
38
- custom_credentials_enabled = local.custom_credentials_enabled
39
- custom_credentials_config = local.custom_credentials_config
40
- postgres_password = local.custom_credentials_enabled ? " " : module.aws.postgresql_credential.postgres_password
41
- repmgr_password = local.custom_credentials_enabled ? " " : module.aws.postgresql_credential.repmgr_password
42
38
}
43
39
}
Original file line number Diff line number Diff line change @@ -39,3 +39,15 @@ variable "store_password_to_secret_manager" {
39
39
type = bool
40
40
default = false
41
41
}
42
+
43
+ variable "postgresql_config" {
44
+ description = " Custom credentials configuration."
45
+ default = {
46
+ name = " "
47
+ environment = " "
48
+ replicaCount = 3
49
+ storage_class = " gp2"
50
+ postgresql_values = " "
51
+ store_password_to_secret_manager = true
52
+ }
53
+ }
You can’t perform that action at this time.
0 commit comments