Recently I implemented this in my bbb installation.
I use AWS to host my service and all my instances running Ubuntu and here is what I did:
1. Install Prerequisits
sudo apt-get install build-essential libfuse-dev fuse-utils libcurl4-openssl-dev libxml2-dev mime-support
Install fuse 2.8.4 (Ubuntu’s default is outdated)
tar xzf fuse_2.8.4.orig.tar.gz
cd fuse-2.8.4/
sudo ./configure
sudo make && sudo make install
2. Download and Install s3fs-c
cd s3fs-c
sudo ./configure
sudo make && sudo make install
Place Credentials:
sudo vi /etc/passwd-s3fs
Paste: [AWS_KEY]:[AWS_SECRET]
3. Create directory where to s3 bucket will be mounted
sudo mkdir /mnt/s3
Mount:
sudo s3fs bbb-recordings /mnt/s3
sudo chown -R tomcat6:tomcat6 /mnt/s3
Create a script to mount s3
sudo vi /etc/init.d/script-to-mount-s3--bbb-recordings-storage.sh
Paste:
#!/bin/sh
sudo mkdir /mnt/s3
sudo s3fs bbb-recordings /mnt/s3
sudo chmod +x /etc/init.d/script-to-mount-s3-bbb-recordings-storage.sh
sudo update-rc.d script-to-mount-s3-bbb-recordings-storage.sh
4. Change playback html page to poin to the right folder
sudo vi s3/playback/slides/js/playback.js
Change RECORDINGS and SLIDES_XML to:
var RECORDINGS = "http://" + HOST + "/published/slides/" + MEETINGID;
var SLIDES_XML = "http://" + HOST + "/published/slides/" + MEETINGID + '/slides.xml';