Skip to content
Back

Functions fail to deploy after switching to S3 (_APP_STORAGE_DEVICE=s3)

  • 0
  • Self Hosted
  • Flutter
  • Functions
Ayrix
17 Jun, 2025, 20:56

Hi @D5 , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. I’m running Appwrite via Docker on an Ubuntu server.

What I did: • Updated .env with _APP_STORAGE_DEVICE=s3 and added all required APP_STORAGE_S3* variables • Restarted the Appwrite stack successfully • File uploads to S3 work fine from the Flutter app • However, when I try to appwrite push function --all, both of my functions fail to deploy • Console shows errors like:

TypeScript
% appwrite push function --all
Info: Validating functions ...
Info: Checking for changes ...
Info: Pushing functions ...
Error        • test-function (test-function)            • Failed to deploy
Error: Deployment of test-function has failed. Check at http://*******/console/*******/functions/function-test-function/deployment-6851d24c26ee70158b82 for more details

I’ve deleted and reinitialized the functions, removed appwrite.json, and re-pulled the project. Still no luck.

📌 My question: How can I properly deploy cloud functions with S3 enabled? Do I need to change _APP_DOMAIN_FUNCTIONS to my public IP or domain?

Thanks for any guidance! 🙏

Docker logs are attached in the text file

TL;DR
After switching to S3 as the storage backend in a self-hosted Appwrite instance, Cloud Functions fail to deploy. Errors occur when pushing functions, even after deleting and reinitializing functions. The Console shows deployment failures with a link to more details. To properly deploy cloud functions with S3 enabled, update _APP_DOMAIN_FUNCTIONS in .env to your public IP or domain.
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