s3proxy icon indicating copy to clipboard operation
s3proxy copied to clipboard

aws-s3 provider: authenticating automatically using ec2 instance roles

Open SrslyJosh opened this issue 2 years ago • 5 comments

Hi,

When running s3proxy in an ec2 instance, is it possible to have s3proxy automatically retrieve credentials using the instance's IAM roles?

This is how the aws CLI functions when running in an EC2 instance, and I was hoping that s3proxy would be able to do the same. I've poked around in the documentation and source code for jclouds, but I haven't been able to find an answer.

Thanks!

SrslyJosh avatar Jan 17 '23 23:01 SrslyJosh

I have the exact same use case 🙂 If someone can share a workaround 🙏

alifirat avatar May 10 '23 18:05 alifirat

I was also looking for the same... haven't found anything yet.

nicewrld avatar May 12 '23 16:05 nicewrld

Since the project is using jcloud internally, you don't have so much to do. Maybe a latest version is supporting it ?

alifirat avatar May 12 '23 20:05 alifirat

I don't really have java experience or much time to write that currently... I'm running this in Kubernetes and am trying to implement a transparent no-auth proxy for some data, so I just wrote a shell script harness that gets temporary credentials and runs it until the creds expire then exits the app... since it's on k8s it'll restart

it's dirty, but it works for my uses for now

nicewrld avatar May 13 '23 12:05 nicewrld

So you're running s3proxy ? Do you mind to share your s3 proxy configuration ?

alifirat avatar May 13 '23 14:05 alifirat