Upload files to your own S3 bucket
Introduction
You can upload files to your own S3 bucket using ittybit.
Upload task
You can create a new upload task with type: 's3' to upload a file to your own S3 bucket.
Credentials
Each object storage provider has a slightly different way of fetching your credentials, but the values you need are:
access_key_idsecret_access_keyendpointbucket
You can usually find these values in the object storage provider's dashboard. Asking your favourite LLM or Google usually gets you there pretty quickly.
Environment variables
It's clunky to pass these credentials to your code every time you run a task. So you can save them to a secure environment variable inside ittybit.
Saving credentials
-
Go to your project settings in the ittybit webapp.
-
In the 'Environment variables' section, create a new variable called
S3_CONNECTION_JSON. -
Paste your complete credentials JSON into that variable.
It should look something like this: