-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
aurora-postgres.tf
66 lines (63 loc) · 2.08 KB
/
aurora-postgres.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
module "aurora_postgres_cluster" {
source = "cloudposse/rds-cluster/aws"
version = "1.3.1"
engine = "aurora-postgresql"
engine_mode = "provisioned"
engine_version = "15.4"
cluster_family = "aurora-postgresql15"
cluster_size = 1
admin_user = var.admin_user
admin_password = var.admin_password
db_name = var.database_name
db_port = var.database_port
instance_type = "db.t3.medium"
vpc_id = local.vpc_id
subnets = local.subnet_ids
security_groups = [local.security_group_id]
deletion_protection = false
autoscaling_enabled = false
storage_encrypted = false
enhanced_monitoring_role_enabled = false
iam_database_authentication_enabled = false
publicly_accessible = false
intra_security_group_traffic_enabled = true
skip_final_snapshot = true
cluster_parameters = [
{
name = "rds.logical_replication"
value = "1"
apply_method = "pending-reboot"
},
{
name = "max_replication_slots"
value = "10"
apply_method = "pending-reboot"
},
{
name = "wal_sender_timeout"
value = "0"
apply_method = "pending-reboot"
},
{
name = "max_worker_processes"
value = "8"
apply_method = "pending-reboot"
},
{
name = "max_logical_replication_workers"
value = "10"
apply_method = "pending-reboot"
},
{
name = "max_parallel_workers"
value = "8"
apply_method = "pending-reboot"
},
{
name = "max_parallel_workers"
value = "8"
apply_method = "pending-reboot"
}
]
context = module.this.context
}