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

πŸ‘©β€πŸ’» Documentation Request: add tutorial for Function + Object Storage #4238

Closed
samber opened this issue Jan 17, 2025 · 5 comments

Comments

@samber
Copy link
Contributor

samber commented Jan 17, 2025

Summary

Could you add an example of a Serverless Function that periodically removes incomplete uploads to an object storage bucket (eg: older than 30 days)?

I suppose that many of your customers have the same need.

Something similar to https://www.scaleway.com/en/docs/tutorials/manage-container-registry-images/

Why is it needed?

.

Want to write this documentation yourself?

No

Related PR(s)

No response

(Optional) Scaleway Organization ID

No response

Email address

No response

@thomas-tacquet
Copy link
Collaborator

Sure it's a good use case for Serverless Functions :)

While waiting for some tutorial on our side, here is some inspiration in our Serverless Function repository, some projects are close to what you are looking for: https://github.com/scaleway/serverless-examples/tree/main

Which runtime are you interested in ? we support node, go, python, rust and php

@samber
Copy link
Contributor Author

samber commented Jan 23, 2025

In that situation, any runtime is suitable. Such a function is a simple copy-paste and then you forget it.

@thomas-tacquet
Copy link
Collaborator

Maybe there is no need to write code, you can maybe wrap some of the content of this tutorial into a dockerfile, and use Serverless Jobs (or Containers) to run it periodically ?

@thomas-tacquet
Copy link
Collaborator

Object Storage team recommends to define lifecycle for your request: https://www.scaleway.com/en/docs/storage/object/api-cli/lifecycle-rules-api/#setting-rules-for-incomplete-multipart-uploads

@thomas-tacquet
Copy link
Collaborator

It seems good so I close the issue, do not hesitate to raise issues involving Serverless ressources to add values to business problems :)

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

No branches or pull requests

2 participants