Skip to content

Instantly share code, notes, and snippets.

@s-chb
Last active July 30, 2020 09:20
Show Gist options
  • Select an option

  • Save s-chb/a73d4c78ec6fa69d3b869b6cafcffbd2 to your computer and use it in GitHub Desktop.

Select an option

Save s-chb/a73d4c78ec6fa69d3b869b6cafcffbd2 to your computer and use it in GitHub Desktop.
sudo nano /etc/mount.sh
# Then add the following line :
sudo s3fs your_bucketname /mys3bucket -o use_cache=/tmp -o allow_other -o uid=1001 -o mp_umask=002 -o multireq_max=5 -o use_path_request_style -o url=https://s3-{{aws_region}}.amazonaws.com
# Then setup the right permissions :
sudo chmod -R a+rwx /etc/mount.sh
# Access the crontab
crontab -e
# Add the following line :
@reboot /etc/mount.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment