Skip to content

Commit

Permalink
add backup expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtriska committed Mar 27, 2020
1 parent 08a30a8 commit 3e753a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jellyfin.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ resource "aws_s3_bucket" "jellyfin_media" {

resource "aws_s3_bucket" "jellyfin_backup" {
bucket = "${var.ENVIRONMENT}-jellyfin-backup"
lifecycle_rule {
id = "backups"
enabled = true
expiration {
days = 30
}
}
tags = {
Name = "${var.ENVIRONMENT}-jellyfin-backup"
Environment = var.ENVIRONMENT
Expand Down

0 comments on commit 3e753a1

Please sign in to comment.