Skip to content
Sites Hackathon is live / Aug 29 - Sep 12
Back

Amazon S3 adapter

  • 0
  • Storage
pitcairn1987
30 Oct, 2023, 08:16

Hi, how exactly the Amazon S3 adapter works? Are the files whicxh I send by Appwrite are first sent to the Appwrite storage and then sent to Amazon storage? Or go straight to Amazon?

TL;DR
The user wants to configure the Appwrite platform to send files directly to Amazon S3 without storing them in Appwrite. They are asking for guidance on updating the necessary files to achieve this. The user also wants to confirm if files deleted from Amazon S3 will also be deleted from Appwrite. The thread confirms that files are first sent to Appwrite storage and then transferred to Amazon S3. The user asks if using the adapter to send files directly to Amazon S3 is a good idea. Solution: To configure the Appwrite platform to send files directly to Amazon S3, update the designated files with the required S3 credentials.
Haimantika
30 Oct, 2023, 17:34

When you send files to Appwrite, they are first sent to the Appwrite storage, and then Appwrite transfers the files to your configured Amazon S3 storage. So the files go through Appwrite before being stored in Amazon S3.

pitcairn1987
30 Oct, 2023, 18:15

Ok. So when I want to store my files totaly on separate storage like Amazon S3, the idea with adapter is not good idea? Am i good understand?

Haimantika
30 Oct, 2023, 18:16

Why not? There shouldn’t be a problem

pitcairn1987
30 Oct, 2023, 19:09

Ok. So how can I configure it to send file to Amazon but not store them in Appwrite. When I want to delete file from Amazon it has to be also in Appwrite?

Haimantika
31 Oct, 2023, 09:10

To configure it to send file to Amazon directly, you need to update the following files as shown below:

TypeScript
_APP_STORAGE_DEVICE=s3
_APP_STORAGE_S3_KEY=your_s3_key
_APP_STORAGE_S3_SECRET=your_s3_secret
_APP_STORAGE_S3_BUCKET=your_s3_bucket
_APP_STORAGE_S3_REGION=your_s3_region
Haimantika
31 Oct, 2023, 09:10

Also, for deleting, it won't be automatically deleted from Appwrite.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more