Mount AWS S3 bucket to your Debian

This is really nice to have as it can extend Linux file system with unlimited capacity for assets / logs / recorded call etc. The key is S3FS!

Ok, let's get started.

  • Create bucket in S3 and IAM user with full S3 access;
  • Install dependencies;
  • Install S3FS;
  • Save access and secret key;
  • Mount bucket;
  • Profit!

The following dependencies you will need:

apt-get install build-essential git libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support automake libtool pkg-config libssl-dev

Clone S3FS to your Linux FS:

git clone

Change your directory and build the software:

cd s3fs-fuse/
./ && ./configure --prefix=/usr --with-openssl && make && make install

Once done, create access data to your bucket:

touch ~/.passwd-s3fs

And now put your access and secret keys pair to this file in the following format:

AWS Access Key ID:AWS Secret Access Key

Now last thing is to mount:

mkdir /tmp/cache
chmod 777 /tmp/cache
mkdir /mnt/yourbucketname
s3fs -o use_cache=/tmp/cache yourbucketname /mnt/yourbucketname

Now you should be able to see uploaded files in your AWS Explorer or vice versa! Enjoy!

In short, this is about:
#mount bucket
#amazon s3

Start discussion:
Related articles:
How to install, configure and run Asterisk 13 on Debian 8.x. From nothing to PBX in 5 minutes! ... more
almost 6 years#pbx #asterisk #debian
In this article we are going to set up CloudFront for static site. And there is nice tip how to nested content (i.e. subfolders) available. ... more
If you have slow instance, but you have SSD volumes you can survive like a boss with it to be honest and this is how. ... more
Learn how to mount S3 bucket to your Mac OS ... more
over 5 years#amazon s3 #mac #amazon
August, 9th, 2016 - passed my Amazon CSAA. Few tips I'd love to share here. ... more
Amazon Web Services (AWS) has its own AWS Linux AMI (also free tier). There are several reasons you want to use this AMI for your projects. ... more
AWSRus — Official AWS User Group Russia (St. Petersburg). ... more
almost 5 years#meetup #awsrus #amazon
CloudAcademy webinar: how to use AWS services for Backup and DR challenges. I am presenter! ... more
AWS Elastic File System is scalable file system in the cloud, requires NFSv4.1 client and does not support Windows at the moment. However let's see what we can do.. ... more
about 4 years#efs #amazon efs #amazon
It's been written many times, however there is no consistency how to make static web site with SSL and SEO friendly urls (301 redirect). Pure AWS based services static website ahead, check details inside! ... more
almost 5 years#static site #seo #amazon
Send text messages (SMS) with few lines of Python code using Amazon SNS and boto3 SDK. ... more
AWS SES supports SMTP settings for sending through it-self. This is really helpful if we want to configure personal outbound server. ... more
about 4 years#aws ses #smtp #amazon
Launching AWS EC2 can be supplied by something what is known as "user data" and it helps to have things ready before you access it. ... more
How to pre-deploy App using user data script for Windows OS with powershell powered script in EC2? Example inside. ... more
I made light talk on one of our recent #AWSRus community gathering in Moscow and decided to discover this topic with further series of posts in my blog covering various AWS services. ... more
about 4 years#free tier #amazon