This is an automated email from the ASF dual-hosted git repository. bridgetb pushed a commit to branch gh-pages in repository https://gitbox.apache.org/repos/asf/drill.git
commit 692f95c02d16023c8eee412d1488455280d8aa2c Author: Nitin S <[email protected]> AuthorDate: Wed Sep 19 22:41:38 2018 -0700 Docs for configuring Drill to S3 Instance Profiles Adding instructions for using drill with AWS Instance Profiles/IAM Roles for accessing S3. --- .../connect-a-data-source/plugins/110-s3-storage-plugin.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md b/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md index b758e80..4b00d55 100644 --- a/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md +++ b/_docs/connect-a-data-source/plugins/110-s3-storage-plugin.md @@ -47,7 +47,18 @@ To configure the access keys in Drill's core-site.xml file, navigate to the `$DR <name>fs.s3a.endpoint</name> <value>s3.REGION.amazonaws.com</value> </property> - </configuration> + </configuration> + +### Configuring Drill to use AWS IAM Roles for Accessing S3 + +If you use IAM roles/Instance profiles, to access data in s3, use the following settings in your core-site.xml. Do not specify the secret key or access key properties. As an example: + + <configuration> + <property> + <name>fs.s3a.aws.credentials.provider</name> + <value>com.amazonaws.auth.InstanceProfileCredentialsProvider</value> + </property> + </configuration> **Note:** When you rename the file, Hadoop support breaks if `$HADOOP_HOME` was in the path because Drill pulls in the Drill core-site.xml file instead of the Hadoop core-site.xml file. In this situation, make the changes in the Hadoop core-site.xml file. Do not create a core-site.xml file for Drill.
