Skip to content

Commit

Permalink
set-backup-retention
Browse files Browse the repository at this point in the history
  • Loading branch information
GracefulLemming committed Mar 7, 2024
1 parent e80996e commit 9a818b4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions terraform/database-sql.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,14 @@ in {
db_subnet_group_name = name;
vpc_security_group_ids = config.servers.database.security_group_ids;
final_snapshot_identifier = "${name}-primary-final-snapshot";
backup_retention_period = 14;
backup_window = "7:00-7:59";

# Server times are in UTC, so this is 12am-3am PT
apply_immediately = true;
maintenance_window = "Tue:08:00-Tue:11:00";
};

aws_db_instance_automated_backups_replication.default = {
source_db_instance_arn = "\${aws_db_instance.sql_database.arn}";
retention_period = 14;
};

aws_security_group_rule.sql_database_external = {
type = "ingress";
security_group_id = "\${aws_security_group.nixos_test.id}";
Expand Down

0 comments on commit 9a818b4

Please sign in to comment.