Closed Bug 1457816 Opened 6 years ago Closed 6 years ago

S3 expiration policy for Firefox & mobile nightlies

Categories

(Cloud Services :: Operations: Product Delivery, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: nthomas, Assigned: oremj)

References

Details

Could you please add an expiration policy which removes keys once they are 10 days old from these bucket+prefix combinations:

net-mozaws-prod-delivery-firefox   /pub/firefox/nightly/latest- 
net-mozaws-prod-delivery-firefox   /pub/firefox/nightly/partials

net-mozaws-prod-delivery-archive   /pub/mobile/nightly/latest-

Previous key versions can be removed after 5 days, as these are heavily overwritten but we fail forward.
See Also: → 1405622
Blocks: 1226991
Assignee: nobody → oremj
Flags: needinfo?(oremj)
I've added these rules to the stage bucket. Let's give it a few days, then let me know if everything looks good.
Flags: needinfo?(oremj) → needinfo?(nthomas)
Hmm, I'm not sure what was present on stage before the rules were added. Looks like no partials directory at least. Do we have bucket logging enabled ? Looks like we'd get S3.CREATE.DELETEMARKER and S3.EXPIRE.OBJECT operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-and-other-bucket-config.html)
Flags: needinfo?(nthomas)
ni for the bucket logging question in comment #2.
Flags: needinfo?(oremj)
Yes, we do have bucket logs enabled. I'll check it out, but it probably won't be until after the all hands.
Great! With the logging telling us what the expiration is doing, and versioning providing a restoration path if things go wrong, then I'm pretty happy we'll be OK.
I've turned these rules on in production.
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(oremj)
Resolution: --- → FIXED
Looking good to me, thanks.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.