[GH-ISSUE #776] Aws IAM role not working. #447

Open
opened 2026-03-04 01:45:38 +03:00 by kerem · 2 comments
Owner

Originally created by @guruprasad85 on GitHub (Jun 12, 2018).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/776

i have configured IAM role. awscli working fine but while i am using s3fs for working. kindly help me to share the command or configuration change.

Originally created by @guruprasad85 on GitHub (Jun 12, 2018). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/776 i have configured IAM role. awscli working fine but while i am using s3fs for working. kindly help me to share the command or configuration change.
Author
Owner

@slaughtr commented on GitHub (Jun 12, 2018):

Per another issue, you need to use a couple of arguments to make roles work:

s3fs -o iam_role="MY_ROLE" -o url="https://s3-eu-central-1.amazonaws.com" -o endpoint=eu-central-1 -o dbglevel=info -o curldbg -o allow_other -o use_cache=/tmp DEST_BUCKET /var/ftp/here

Of import here are the iam_role bit and using url= to point at the bucket.

<!-- gh-comment-id:396684795 --> @slaughtr commented on GitHub (Jun 12, 2018): Per another issue, you need to use a couple of arguments to make roles work: `s3fs -o iam_role="MY_ROLE" -o url="https://s3-eu-central-1.amazonaws.com" -o endpoint=eu-central-1 -o dbglevel=info -o curldbg -o allow_other -o use_cache=/tmp DEST_BUCKET /var/ftp/here` Of import here are the `iam_role` bit and using `url=` to point at the bucket.
Author
Owner

@guruprasad85 commented on GitHub (Jun 13, 2018):

i have run following cmd and i found error: s3fs -o iam_role="Ec2_to_S3_full_permission" -o url="https://s3.amazonaws.com/s3fs-test-13/" -o endpoint=eu-east-1 -o dbglevel=info -o curldbg -o allow_other -o use_cache=/tmp DEST_BUCKET /home/ubuntu/test

Broadcast message from systemd-journald@ip-172-31-26-83 (Wed 2018-06-13 06:15:35 UTC):

s3fs[9647]: s3fs: BUCKET DEST_BUCKET, name not compatible with virtual-hosted style.

one more command : s3fs -o iam_role="Ec2_to_S3_full_permission" -o url="https://s3.amazonaws.com/s3fs-test-13/" -o endpoint=eu-east-1 -o dbglevel=info -o curldbg -o allow_other -o use_cache=/tmp /home/ubuntu/test

Broadcast message from systemd-journald@ip-172-31-26-83 (Wed 2018-06-13 06:16:05 UTC):

s3fs[9648]: s3fs: BUCKET /home/ubuntu/test -- bucket name contains an illegal character.

<!-- gh-comment-id:396825999 --> @guruprasad85 commented on GitHub (Jun 13, 2018): i have run following cmd and i found error: s3fs -o iam_role="Ec2_to_S3_full_permission" -o url="https://s3.amazonaws.com/s3fs-test-13/" -o endpoint=eu-east-1 -o dbglevel=info -o curldbg -o allow_other -o use_cache=/tmp DEST_BUCKET /home/ubuntu/test Broadcast message from systemd-journald@ip-172-31-26-83 (Wed 2018-06-13 06:15:35 UTC): s3fs[9647]: s3fs: BUCKET DEST_BUCKET, name not compatible with virtual-hosted style. one more command : s3fs -o iam_role="Ec2_to_S3_full_permission" -o url="https://s3.amazonaws.com/s3fs-test-13/" -o endpoint=eu-east-1 -o dbglevel=info -o curldbg -o allow_other -o use_cache=/tmp /home/ubuntu/test Broadcast message from systemd-journald@ip-172-31-26-83 (Wed 2018-06-13 06:16:05 UTC): s3fs[9648]: s3fs: BUCKET /home/ubuntu/test -- bucket name contains an illegal character.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#447
No description provided.