Skip to content

Instantly share code, notes, and snippets.

@kenseii
Forked from arfon/goofys.bash
Created January 12, 2021 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenseii/070a028ebd7f31f33f7f24d4eebdbbbb to your computer and use it in GitHub Desktop.
Save kenseii/070a028ebd7f31f33f7f24d4eebdbbbb to your computer and use it in GitHub Desktop.
# Install go
$ sudo apt-get install golang-go
# Download goofys package
$ go get github.com/kahing/goofys
# Install goofys
$ go install github.com/kahing/goofys
# Copy the goofys binary to somewhere in your path
$ sudo cp go/bin/goofys /usr/bin/
$ cat .aws/credentials
[default]
aws_access_key_id=YOURAWSACCESSKEY
aws_secret_access_key=YOURAWSSECRETKEY
# Make a directory to mount the S3 bucket
$ mkdir /home/ubuntu/data
# Mount the S3 bucket
$ goofys --profile=tess stpubdata /home/ubuntu/data
# Finally, list the contents of the S3 bucket
$ ls /home/ubuntu/data/tess/public/
engineering ffi mast models pixel_list tid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment