Skip to content

Commit

Permalink
Merge pull request #373 from communitiesuk/DT-472
Browse files Browse the repository at this point in the history
DT-472 Reduce noncurrent expiration period on weekly backup bucket
  • Loading branch information
BenRamchandani authored Jan 5, 2024
2 parents 356add9 + a9ddbfa commit cfd0884
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions terraform/modules/marklogic/backup_buckets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ resource "aws_s3_bucket_lifecycle_configuration" "weekly_backup_bucket" {
days_after_initiation = 14
}

# There shouldn't be many noncurrent objects since the expiration rule will delete them directly,
# so no harm in having this as a longer duration
noncurrent_version_expiration {
noncurrent_days = 180
noncurrent_days = 20
}

status = "Enabled"
Expand All @@ -74,7 +72,7 @@ resource "aws_s3_bucket_lifecycle_configuration" "weekly_backup_bucket" {
}

expiration {
days = 90
days = 80
}

status = "Enabled"
Expand Down

0 comments on commit cfd0884

Please sign in to comment.