Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3513070
D13428.id44423.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13428.id44423.diff
View Options
diff --git a/services/terraform/self-host/aws_db.tf b/services/terraform/self-host/aws_db.tf
--- a/services/terraform/self-host/aws_db.tf
+++ b/services/terraform/self-host/aws_db.tf
@@ -37,23 +37,26 @@
# MariaDB RDS Instance
resource "aws_db_instance" "mariadb" {
- allocated_storage = 100
- max_allocated_storage = 3000
- storage_type = "gp3"
- db_name = "mariadb"
- identifier = "mariadb-instance"
- engine = "mariadb"
- engine_version = "10.11"
- instance_class = var.db_instance_class
- db_subnet_group_name = aws_db_subnet_group.public_db_subnet_group.name
- vpc_security_group_ids = [aws_security_group.keyserver_mariadb_security_group.id]
- username = local.mariadb_username
- password = local.mariadb_password
- parameter_group_name = aws_db_parameter_group.mariadb_parameter_group.name
- storage_encrypted = true
- publicly_accessible = true
- port = local.mariadb_port
- skip_final_snapshot = true
+ allocated_storage = 100
+ max_allocated_storage = 3000
+ storage_type = "gp3"
+ db_name = "mariadb"
+ identifier = "mariadb-instance"
+ engine = "mariadb"
+ engine_version = "10.11"
+ instance_class = var.db_instance_class
+ backup_retention_period = 7
+ backup_window = "08:00-09:00"
+ maintenance_window = "Mon:09:30-Mon:10:00"
+ db_subnet_group_name = aws_db_subnet_group.public_db_subnet_group.name
+ vpc_security_group_ids = [aws_security_group.keyserver_mariadb_security_group.id]
+ username = local.mariadb_username
+ password = local.mariadb_password
+ parameter_group_name = aws_db_parameter_group.mariadb_parameter_group.name
+ storage_encrypted = true
+ publicly_accessible = true
+ port = local.mariadb_port
+ skip_final_snapshot = true
}
# MariaDB Parameter Group
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 10:03 PM (17 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2690794
Default Alt Text
D13428.id44423.diff (1 KB)
Attached To
Mode
D13428: [terraform] add backups to self-host aws rds
Attached
Detach File
Event Timeline
Log In to Comment