mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #2385] Can't mount using AWS Cli Profile with role_arn and source_profile #1168
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gitgpi on GitHub (Nov 29, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2385
Additional Information
Version of s3fs being used (1.93)
Version of fuse being used (2.9.9)
Kernel information (6.1.49-70.116.amzn2023.aarch64)
GNU/Linux Distribution, if applicable
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3⭕amazon:amazon_linux:2023"
How to run s3fs, if applicable
[] command line
[] /etc/fstab
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)Details about issue
I have a bucket that in order to access it I need to configure my ~/.aws/config with the parameter role_arn and source_profile, it works fine when usin aws cli command and also boto3, but it doesn't work using s3fs.
@ggtakec commented on GitHub (Feb 12, 2024):
@gitgpi
Looking at the command line, I think there is no problem.
For your reference, if you authenticate to s3fs using the
defaultprofile in the ${HOME}/.aws/credential file used by the aws cli, you can leave theprofileoption unspecified.If you want to use something other than
defaultin this file, please specifyprofile.(In your case, it seems you are specifyingprofile=my_profile)Try specifying the
dbglevelandcurldbgoptions to collect detailed logs.I think that log will help you solve this problem.
For reference, the s3fs authentication process is the following function.
https://github.com/s3fs-fuse/s3fs-fuse/blob/master/src/s3fs_cred.cpp#L955-L970
Inspect the authentication token, etc. in the following order.