@@ -23,8 +23,8 @@ data "aws_caller_identity" "current" {}
23
23
data "aws_region" "current" {}
24
24
25
25
module "kms" {
26
- source = " terraform-aws-modules/kms/aws"
27
- version = " ~> 1.0"
26
+ source = " terraform-aws-modules/kms/aws"
27
+ version = " ~> 1.0"
28
28
deletion_window_in_days = 7
29
29
description = " Complete key example showing various configurations available"
30
30
enable_key_rotation = true
@@ -104,7 +104,7 @@ module "rds-pg" {
104
104
db_name = " test"
105
105
multi_az = " true"
106
106
family = local. family
107
- vpc_id = module. vpc . vpc_id
107
+ vpc_id = module. vpc . vpc_id
108
108
allowed_security_groups = local. allowed_security_groups
109
109
subnet_ids = module. vpc . database_subnets # # db subnets
110
110
environment = local. environment
@@ -119,7 +119,7 @@ module "rds-pg" {
119
119
skip_final_snapshot = true
120
120
backup_window = " 03:00-06:00"
121
121
maintenance_window = " Mon:00:00-Mon:03:00"
122
- final_snapshot_identifier_prefix = " final"
122
+ final_snapshot_identifier_prefix = " final"
123
123
major_engine_version = local. engine_version
124
124
deletion_protection = false
125
125
cloudwatch_metric_alarms_enabled = false
@@ -130,22 +130,20 @@ module "rds-pg" {
130
130
slack_channel = " postgresql-notification"
131
131
slack_webhook_url = " https://hooks/xxxxxxxx"
132
132
custom_user_password = local. custom_user_password
133
- # if you want backup and restore then you have to create your cluster with rds vpc id , private subnets, kms key.
133
+ # if you want backup and restore then you have to create your cluster with rds vpc id , private subnets, kms key.
134
134
# And allow cluster security group in rds security group
135
- cluster_name = " "
136
- namespace = local. namespace
137
- create_namespace = local. create_namespace
135
+ cluster_name = " "
136
+ namespace = local. namespace
137
+ create_namespace = local. create_namespace
138
138
postgresdb_backup_enabled = false
139
139
postgresdb_backup_config = {
140
- postgres_database_name = " " # Specify the database name or Leave empty if you wish to backup all databases
141
- cron_for_full_backup = " */2 * * * *" # set cronjob for backup
142
- bucket_uri = " s3://mongodb-backups-atmosly" # s3 bucket uri
140
+ postgres_database_name = " " # Specify the database name or Leave empty if you wish to backup all databases
141
+ cron_for_full_backup = " */2 * * * *" # set cronjob for backup
142
+ bucket_uri = " s3://mongodb-backups-atmosly" # s3 bucket uri
143
143
}
144
144
postgresdb_restore_enabled = false
145
145
postgresdb_restore_config = {
146
146
bucket_uri = " s3://mongodb-backups-atmosly" # S3 bucket URI (without a trailing slash /) containing the backup dump file.
147
- backup_file_name = " db5_20241114111607.sql" # Give .sql or .zip file for restore
147
+ backup_file_name = " db5_20241114111607.sql" # Give .sql or .zip file for restore
148
148
}
149
149
}
150
-
151
-
0 commit comments