AWS S3
Guys, does anyone knows how to find these things on AWS S3? I need to add them to the runpod template.
BUCKET_ENDPOINT_URL= # S3 bucket endpoint url
BUCKET_ACCESS_KEY_ID= # S3 bucket access key id
BUCKET_SECRET_ACCESS_KEY= # S3 bucket secret access key
8 Replies
You get the endpoint URL from S3 and the secrets from IAM
I only found the access key
You can only get the secret key when you create it, it can't be retrieved afterwards
You probably need to create a new one
ok
what about the endpoint URL?
Do you know if I can attach more than one AWS bucket to the same runpod template?
Because I will need to use the same runpod template for more than one app... and each app has its own S3 bucket...
heres my response in another thread you asked on:
Mmmm, I dont think you can use it like this way from the rp's handler :https://docs.runpod.io/serverless/workers/development/environment-variables#python-code-for-s3-uploads
but i think you can make your own custom code and use S3 on your code using libraries to upload them to your preconfigured buckets ( custom code )
Use environment variables | RunPod Documentation
Incorporating environment variables into your Handler Functions is a key aspect of managing external resources like S3 buckets.
https://github.com/runpod/runpod-python/blob/main/runpod/serverless/utils/rp_upload.py
use the resources in here too, itll help you making your own custom code
GitHub
runpod-python/runpod/serverless/utils/rp_upload.py at main · runpod...
🐍 | Python library for RunPod API and serverless worker SDK. - runpod/runpod-python