7
7
Expires = " Never"
8
8
Department = " Engineering"
9
9
}
10
+ family = " postgres15"
10
11
vpc_cidr = " 10.20.0.0/16"
11
- family = " postgres15 "
12
+ storage_type = " gp3 "
12
13
engine_version = " 15.2"
13
14
current_identity = data. aws_caller_identity . current . arn
14
15
allowed_security_groups = [" sg-0a680afd35" ]
@@ -25,10 +26,10 @@ module "kms" {
25
26
26
27
deletion_window_in_days = 7
27
28
description = " Complete key example showing various configurations available"
28
- enable_key_rotation = false
29
+ enable_key_rotation = true
29
30
is_enabled = true
30
31
key_usage = " ENCRYPT_DECRYPT"
31
- multi_region = false
32
+ multi_region = true
32
33
33
34
# Policy
34
35
enable_default_policy = true
@@ -82,14 +83,15 @@ module "rds-pg" {
82
83
source = " squareops/rds-postgresql/aws"
83
84
name = local. name
84
85
db_name = " postgres"
85
- multi_az = " true"
86
86
family = local. family
87
- replica_enable = local. replica_enable
88
- replica_count = local. replica_count
87
+ multi_az = " true"
89
88
vpc_id = module. vpc . vpc_id
90
89
subnet_ids = module. vpc . database_subnets # # db subnets
91
90
environment = local. environment
91
+ replica_enable = local. replica_enable
92
+ replica_count = local. replica_count
92
93
kms_key_arn = module. kms . key_arn
94
+ storage_type = local. storage_type
93
95
engine_version = local. engine_version
94
96
instance_class = local. instance_class
95
97
master_username = " pguser"
@@ -101,11 +103,11 @@ module "rds-pg" {
101
103
maintenance_window = " Mon:00:00-Mon:03:00"
102
104
final_snapshot_identifier_prefix = " final"
103
105
major_engine_version = local. engine_version
104
- deletion_protection = false
106
+ deletion_protection = true
105
107
cloudwatch_metric_alarms_enabled = true
106
108
alarm_cpu_threshold_percent = 70
107
109
disk_free_storage_space = " 10000000" # in bytes
108
- slack_username = " "
109
- slack_channel = " "
110
- slack_webhook_url = " "
110
+ slack_username = " Admin "
111
+ slack_channel = " postgresql-notification "
112
+ slack_webhook_url = " https://hooks/xxxxxxxx "
111
113
}
0 commit comments