Skip to content

Commit

Permalink
Merge pull request #3182 from yuvipanda/backups
Browse files Browse the repository at this point in the history
Enable automatic backups for homedirs on AWS
  • Loading branch information
yuvipanda authored Sep 28, 2023
2 parents d7c2f7a + 8108e7a commit 11d4f0e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions terraform/aws/efs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,13 @@ resource "aws_efs_mount_target" "homedirs" {
output "nfs_server_dns" {
value = aws_efs_file_system.homedirs.dns_name
}

# Enable automatic backups for user homedirectories
# Documented in https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#automatic-backups
resource "aws_efs_backup_policy" "homedirs" {
file_system_id = aws_efs_file_system.homedirs.id

backup_policy {
status = "ENABLED"
}
}

0 comments on commit 11d4f0e

Please sign in to comment.