Skip to content

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

Draft
athornton wants to merge 2 commits into
mainfrom
tickets/DM-43203
Draft

tickets/DM-43203: Add lifecycle rules to clean up mobu git-lfs artifacts#498
athornton wants to merge 2 commits into
mainfrom
tickets/DM-43203

Conversation

@athornton
Copy link
Copy Markdown
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
Copy Markdown
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