# Access S3 Using ProfileAuth ( ~/.aws/Credentials) - Dremio throwing IllegalStateException

**URL:** <https://community.dremio.com/t/access-s3-using-profileauth-aws-credentials-dremio-throwing-illegalstateexception/4511>\
**Category:** Uncategorized\
**Created:** [November 6, 2019, 5:26am UTC](https://community.dremio.com/t/access-s3-using-profileauth-aws-credentials-dremio-throwing-illegalstateexception/4511 "2019-11-06T05:26:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sathish\_Senathi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/sathish_senathi/32/1852_2.png) [@Sathish\_Senathi](https://community.dremio.com/u/Sathish_Senathi)\
**Post date:** [November 6, 2019, 5:26am UTC](https://community.dremio.com/t/access-s3-using-profileauth-aws-credentials-dremio-throwing-illegalstateexception/4511/1 "2019-11-06T05:26:56Z")

</div>

Hi,

I have a need to access the S3 using ProfileFile Credentials ( not Instance IAM , But based on Profile Files)

Is there anyway i can make this happen

I try to put in the Advanced propertes of S3 with the following

fs.s3a.aws.credentials.provider = com.amazonaws.auth.DefaultAWSCredentialsProviderChain

but the log shows the following

Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: com.amazonaws.auth.DefaultAWSCredentialsProviderChain

What does this mean ?

Version : Dremio 4.0.1  
OS : Linux

Verified that .aws/credentials is correctly populated.

Regards  
Sathish

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [November 6, 2019, 6:59am UTC](https://community.dremio.com/t/access-s3-using-profileauth-aws-credentials-dremio-throwing-illegalstateexception/4511/2 "2019-11-06T06:59:58Z")

</div>

@Sathish_Senathi

Is your S3 set this way?

[https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide\_credentials\_profiles.html](https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials_profiles.html)

Are you unable to add the access key and secret key directly to the S3 source?

Thanks  
@balaji.ramaswamy

---

<div class="post-metadata">

**Author:** ![Sathish\_Senathi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/sathish_senathi/32/1852_2.png) [@Sathish\_Senathi](https://community.dremio.com/u/Sathish_Senathi)\
**Post date:** [November 6, 2019, 8:10am UTC](https://community.dremio.com/t/access-s3-using-profileauth-aws-credentials-dremio-throwing-illegalstateexception/4511/3 "2019-11-06T08:10:36Z")

</div>

No, I don’t have those as the profile is refreshed by external process.

---

<div class="post-metadata">

**Author:** ![Sathish\_Senathi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/sathish_senathi/32/1852_2.png) [@Sathish\_Senathi](https://community.dremio.com/u/Sathish_Senathi)\
**Post date:** [November 6, 2019, 8:45am UTC](https://community.dremio.com/t/access-s3-using-profileauth-aws-credentials-dremio-throwing-illegalstateexception/4511/4 "2019-11-06T08:45:55Z")

</div>

Yes , that is correct.

---

<div class="post-metadata">

**Author:** ![Sathish\_Senathi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/sathish_senathi/32/1852_2.png) [@Sathish\_Senathi](https://community.dremio.com/u/Sathish_Senathi)\
**Post date:** [November 6, 2019, 8:50am UTC](https://community.dremio.com/t/access-s3-using-profileauth-aws-credentials-dremio-throwing-illegalstateexception/4511/5 "2019-11-06T08:50:00Z")

</div>

No I can’t as it has session token , the setup is the profile has accesskey , secret key and token usually valid for 1 hr and gets refreshed by some other process.

This is our test environment setup. I couldnt get other options
