[GH-ISSUE #418] s3fs should try using IAM role automatically if there are no configured credentials #225

Closed
opened 2026-03-04 01:43:24 +03:00 by kerem · 2 comments
Owner

Originally created by @nturner on GitHub (May 20, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/418

If s3fs cannot find credentials for a bucket in a password file, instead of giving up, it would be cool if it checked for an IAM role (like when iam_role=auto has been specified).

This would allow the same mount options to work for systems that are using Roles and those that are using static credentials files, and would be consistent with how the upstream AWS tools work.

Originally created by @nturner on GitHub (May 20, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/418 If s3fs cannot find credentials for a bucket in a password file, instead of giving up, it would be cool if it checked for an IAM role (like when iam_role=auto has been specified). This would allow the same mount options to work for systems that are using Roles and those that are using static credentials files, and would be consistent with how the upstream AWS tools work.
kerem closed this issue 2026-03-04 01:43:24 +03:00
Author
Owner

@ggtakec commented on GitHub (May 29, 2016):

@nturner Thanks for you help, we were able to implement it.
Regards,

<!-- gh-comment-id:222336885 --> @ggtakec commented on GitHub (May 29, 2016): @nturner Thanks for you help, we were able to implement it. Regards,
Author
Owner

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

i have tried "s3fs -o iam_role=auto use_cache=/tmp/cache guru-121 /s3mnt" but not working for me. i have configured IAM role. awscli commands working fine.

<!-- gh-comment-id:395760240 --> @guruprasad85 commented on GitHub (Jun 8, 2018): i have tried "s3fs -o iam_role=auto use_cache=/tmp/cache guru-121 /s3mnt" but not working for me. i have configured IAM role. awscli commands working fine.
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#225
No description provided.