Skip to content

Instantly share code, notes, and snippets.

@Firefishy
Created August 19, 2023 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Firefishy/d379468201dfc9a16928abb8e60a6570 to your computer and use it in GitHub Desktop.
Save Firefishy/d379468201dfc9a16928abb8e60a6570 to your computer and use it in GitHub Desktop.
git-commit-to reduce openstreetmap-wal storage
commit a6403c3f928dcb4c21a19e0e4df0263cfb7184b6
Author: Grant Slater <REMOVED>
Date: Wed Aug 16 23:13:18 2023 +0100
[...]
resource "aws_s3_bucket_lifecycle_configuration" "openstreetmap-wal_lifecycle" {
provider = aws.london
bucket = aws_s3_bucket.openstreetmap-wal.id
rule {
id = "Lifecycle Rule"
status = "Enabled"
abort_incomplete_multipart_upload {
days_after_initiation = 7
}
expiration {
- days = 545
+ days = 366
expired_object_delete_marker = false
}
filter {
object_size_greater_than = null
object_size_less_than = null
prefix = null
}
noncurrent_version_expiration {
noncurrent_days = 7
}
transition {
- days = 30
- storage_class = "STANDARD_IA"
+ days = 7
+ storage_class = "INTELLIGENT_TIERING"
}
}
}
@Firefishy
Copy link
Author

Firefishy commented Aug 19, 2023

Change summary:

  • 545 days of "backup" WAL logs -> 366 days.
  • Move faster to INTELLIGENT_TIERING storage (Automatic between Standard, IA and Archive tier) - cheaper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment