Skip to content

Commit f6b400a

Browse files
authored
Merge pull request #439 from Turbo87/disable-feeds-versioning
crates-io: Disable versioning for `rss/` contents
2 parents 73d6d54 + d0028fe commit f6b400a

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

terragrunt/accounts/legacy/crates-io-staging/crates-io/.terraform.lock.hcl

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terragrunt/modules/crates-io/s3-static.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ resource "aws_s3_bucket" "static" {
3131
}
3232
}
3333

34+
// Delete old RSS feeds as eagerly as possible, without deleting live ones.
35+
lifecycle_rule {
36+
id = "purge-old-rss-feeds"
37+
enabled = true
38+
prefix = "rss/"
39+
40+
abort_incomplete_multipart_upload_days = 1
41+
noncurrent_version_expiration {
42+
days = 1
43+
}
44+
}
45+
3446
lifecycle {
3547
ignore_changes = [
3648
replication_configuration,

0 commit comments

Comments
 (0)