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:
122 what is possible with aws free tier preview
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 1 year#free tier #amazon
81 mount aws s3 bucket to your el capitan preview
Learn how to mount S3 bucket to your Mac OS ... more
over 2 years#amazon s3 #mac #amazon
120 ec2 user data script example preview
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
111 data backup and disaster recovery with aws preview
CloudAcademy webinar: how to use AWS services for Backup and DR challenges. I am presenter! ... more
118 how to send sms using amazon sns and python preview
Send text messages (SMS) with few lines of Python code using Amazon SNS and boto3 SDK. ... more
88 amazon solutions architect associate exam preview
August, 9th, 2016 - passed my Amazon CSAA. Few tips I'd love to share here. ... more
35 how to install asterisk ip pbx on debian 8 x jessie preview
How to install, configure and run Asterisk 13 on Debian 8.x. From nothing to PBX in 5 minutes! ... more
almost 3 years#pbx #asterisk #debian
61 amazon web services cloudfront with subdirectory preview
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
76 memory swap with debian 8 x preview
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
101 aws ec2 linux backup preview
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
110 awsrus russian st petersburg user group for aws preview
AWSRus — Official AWS User Group Russia (St. Petersburg). ... more
almost 2 years#meetup #awsrus #amazon
116 aws efs windows preview
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
119 smtp server for notifications preview
AWS SES supports SMTP settings for sending through it-self. This is really helpful if we want to configure personal outbound server. ... more
about 1 year#aws ses #smtp #amazon
117 seo friendly aws static website with ssl preview
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 2 years#static site #seo #amazon
121 aws ec2 user data script windows preview
How to pre-deploy App using user data script for Windows OS with powershell powered script in EC2? Example inside. ... more