Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tickets/DM-43203: Add lifecycle rules to clean up mobu git-lfs artifacts #498

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

athornton
Copy link
Contributor

Git-LFS uploads from mobu (only) will be deleted after one day, so presumably we will have between 1440 and 2880 items at any given time.

@athornton athornton marked this pull request as draft March 19, 2024 23:28
@athornton
Copy link
Contributor Author

athornton commented Mar 19, 2024

Whoa whoa whoa whoa.

I tried specifying matchesPrefix from https://cloud.google.com/storage/docs/lifecycle#matchesprefix-suffix

First it told me it wanted a string rather than a list, but since it's a one-item list, OK...but then the rule it came up with has no matchesPrefix! So it would delete EVERYTHING in the bucket more than a day old!

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket#matches_prefix seems like a) it should have taken a list ("one or more") and b) it should have done something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants