Skip to content

Commit

Permalink
Merge pull request #415 from NEU-DSG/enable-auto-db-backups
Browse files Browse the repository at this point in the history
add auto backups for db
  • Loading branch information
GracefulLemming authored Mar 7, 2024
2 parents d9199a1 + e80996e commit c97a69a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/database-sql.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ in {
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 c97a69a

Please sign in to comment.