S3 deep storage using IAM role instead of access key and secret key on the config

329 views
Skip to first unread message

cklh28

unread,
Apr 8, 2019, 6:55:44 PM4/8/19
to Druid User
Hi,

Have anyone successfully setup S3 for deep storage without using access key and secret key?   If you did could you please provide more info how it's been done?   

https://groups.google.com/forum/#!topic/druid-user/Lu_3XDi2l4w  I follow this thread but it did not work for me.

Appreciate any input.

Thanks.

Gian Merlino

unread,
Apr 8, 2019, 8:21:31 PM4/8/19
to druid...@googlegroups.com
With recent versions of Druid (0.13+) we use the AWS SDK, so you can omit the access/secret key properties and use any of the standard methods for specifying credentials (environment variables, a file, instance roles).

Gian


--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/fa38adbb-1b89-474c-b9d4-579ea2e7d8ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

cklh28

unread,
Apr 10, 2019, 1:15:05 PM4/10/19
to Druid User
Thanks Gian.   Looks like this approach still required a temporary credential saved on the credential file?    Am I correct?   Sorry I may have ask some questions every developers on AWS would know.  I am a newbie in that area.    Thanks again.

Karthik Urs

unread,
Apr 10, 2019, 3:09:59 PM4/10/19
to Druid User
You have to create an IAM role with all access to the S3 bucket. Attach that role to the ec2 instances that you are running druid cluster on. AWS sdk will automatically work since the user (saml or IAM) running the service will assume the role attached to the ec2 instance. 

I have set it up. Let me know if this didn't help. We can debug.

On Wed, 10 Apr, 2019, 10:45 PM cklh28, <kaka...@gmail.com> wrote:
Thanks Gian.   Looks like this approach still required a temporary credential saved on the credential file?    Am I correct?   Sorry I may have ask some questions every developers on AWS would know.  I am a newbie in that area.    Thanks again.

--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.

cklh28

unread,
Apr 12, 2019, 12:16:46 AM4/12/19
to Druid User
Thanks Karthik.   It helps me to get further.  Now I am seeing index logs on the s3 bucket.

However, I am still unable to load to the deep storage location.  I have started a new subject on that problem


Do you have any idea?   Thanks.
Reply all
Reply to author
Forward
0 new messages