New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where to put aws_session_token
information
#651
Comments
Ultimately it needs to be passed in the request header as Using Temporary Security Credentials to Request Access to AWS Resources |
Please test with |
s3fs gaves me: |
Which version did you test with? No release version yet supports this; you have to compile from master. |
Oh ok, I've used 1.85, let me try master and get back to here. |
s3fs built from master branch, see latest commit: Amazon Simple Storage Service File System V1.85 (commit:80972aa) with OpenSSL s3fs error: [CRT] s3fs.cpp:set_s3fs_log_level(297): change debug level from [CRT] to [INF] |
I believe |
No, ~/.aws/credentials has different naming: aws_access_key_id = KEY_GOES_HERE I've tried to pass 'aws_session_token' in s3fs options but no luck, same error: fuse: unknown option `aws_session_token' weird, but I see that feature in cpp listing: if(profile != aws_profile){ But I am getting an error about 'no such option' instead of missing token or something. |
Sorry, |
Thats what I did, and got error not about incorrect or missing token but: fuse: unknown option `use_session_token' while specifying cli flag for s3fs built form master branch. |
How exactly do you involve s3fs? I see the following:
|
Wild suggestion: @ekarmazin keep in mind that if you are using |
I am using docker containers and each build is a fresh one, so no version overlapping. Here is my configs and how I run s3fs (git clone and make were done at /tmp): /tmp/s3fs-fuse/src/s3fs MY_BUCKET_HERE /mnt -o use_session_token -o allow_other -o use_cache=/tmp -o profile="PROFILE_FORM_AWS_CREDS" -o use_path_request_style -o dbglevel=info -f -o curldbg
See commit #, the latest from master, so it was build from master branch:
Error I am getting:
Point me, what I am doing wrong. Here is how I compiled from src:
fuse version: 2.9.x |
Can this issue be re-opened? I'm facing the same problem: I get:
when I invoke s3fs with |
Which version of s3fs do you use? This option only exists in master, not 1.85. |
For the s3fs installation, I am following the same procedure as @ekarmazin – compiling from source. I later discovered that doing this works:
The |
I'm having the same issue. I'm pulling master from the repo, using |
return 0 after parsing "use_session_token" arg I hope this might fix #651. There's clearly an open bug in #651 confirmed by several users related to the parsing of the `-o use_session_token`. Looking at the source, I noticed that there was a return value everywhere except here, so I suspect this may be responsible.
Could someone test with the latest master which includes a flag parsing fix? |
Working fine for me with c58c91f |
Still does not work for me. I'm using the |
@tiilikainen You will have to compile from master until 1.88 is released. |
Additional Information
The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all.
Version of s3fs being used (s3fs --version): Amazon Simple Storage Service File System V1.82(commit:f4515b5) with OpenSSL
Version of fuse being used (pkg-config --modversion fuse): 2.9.2
System information (uname -a): Linux 3.10.0-693.el7.x86_64 Using %20 instead of the plus (+) sign for encoding spaces #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
Distro (cat /etc/issue): Red Hat Enterprise Linux Workstation release 7.4 (Maipo)
Details about issue
We currently use temporary credentials using
aws sts
, from the documentation it is not clear to me how or where I would put theaws_session_token
. Without setting this, I cannot access aws s3 buckets (i.e. I have to refresh this credential each day to gain access to the s3 buckets again). Can someone please point me to where I need to set this value in s3fs? Thanks!The text was updated successfully, but these errors were encountered: