Open TheBIsReal opened 2 years ago
This issue is already fixed in the latest code, but it hasn't been released yet so you have to build from source, as mentioned in #727.
Thanks @llamafilm, your comment helped me realize that the latest goofys release may not contain the IRSA feature, so I rebuilt it and now goofys is mounting S3 buckets using IAM roles!
Here are some steps I did in a ubuntu container on EKS to build goofys, which may be useful to others too:
$ curl -L https://go.dev/dl/go1.21.4.linux-amd64.tar.gz > go1.21.4.linux-amd64.tar.gz
$ rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.4.linux-amd64.tar.gz
$ export PATH=$PATH:/usr/local/go/bin
$ export GOPATH=$HOME/work
$ go install github.com/kahing/goofys@350ff31
$ ~/work/bin/goofys ${BUCKET_NAME} /media
@kahing any possibility to trigger a new rebuild of goofys? The latest release is very old.. Thanks a lot for this project!
Greetings 👋
I´m struggling to auto-mount my bucket using
fstab
with the following configuration:/usr/sbin/goofys#mybucketname /mnt/data fuse _netdev,allow_other,--file-mode=0660,--dir-mode=0770,--uid=1000,--gid=1000 0 0
When executing
mount -a
goofys fails with the messages seen below:We are operating on an ec2 instance using IMDSv2. Previously we used IMDSv1 without any issues. Once we´ve upgraded to v2 for our ec2-instances, the described issue occured without any additional change.
Have you any idea why goofys does not find the credentials of the ec2 instance role?
Kind regards, Bastian