Skip to content

Commit

Permalink
Merge pull request #204 from dandi/fix-noncurrent-version-expiration
Browse files Browse the repository at this point in the history
Fix `noncurrent_version_expiration`
  • Loading branch information
mvandenburgh authored Jan 7, 2025
2 parents c2717f0 + 1f7627c commit f683ebf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion terraform/modules/dandiset_bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,11 @@ resource "aws_s3_bucket_lifecycle_configuration" "expire_noncurrent_manifest_fil
prefix = "dandisets/"
}

# Only keep 1 noncurrent version of manifest files
noncurrent_version_expiration {
# keep most recent noncurrent version indefinitely
newer_noncurrent_versions = 1
# delete all other noncurrent versions after 1 day
noncurrent_days = 1
}

# Also delete any delete markers associated with the expired object
Expand Down

0 comments on commit f683ebf

Please sign in to comment.