# Can't able to connect s3 through repository-s3 using service account role

**URL:** <https://discuss.elastic.co/t/cant-able-to-connect-s3-through-repository-s3-using-service-account-role/297986>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [February 23, 2022, 8:40am UTC](https://discuss.elastic.co/t/cant-able-to-connect-s3-through-repository-s3-using-service-account-role/297986 "2022-02-23T08:40:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Preti](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@Preti](https://discuss.elastic.co/u/Preti)\
**Post date:** [February 23, 2022, 8:40am UTC](https://discuss.elastic.co/t/cant-able-to-connect-s3-through-repository-s3-using-service-account-role/297986/1 "2022-02-23T08:40:40Z")

</div>

Hi Team,  
Can't able to connect s3 through repository-s3 using service account role.

PUT /\_snapshot/xxxxxxx  
{ "type": "s3", "settings": { "bucket": "xxxxxxx", "allow\_insecure\_settings": "false","protocol": "https", "endpoint": "[s3.xxxxx.amazonaws.com](http://s3.xxxxx.amazonaws.com)" }  
}

This is the error response I get.

"error" : {  
"root\_cause" : [  
{  
"type" : "repository\_verification\_exception",  
"reason" : "[infra\_snapshot123] path is not accessible on master node"  
}  
],  
"type" : "repository\_verification\_exception",  
"reason" : "[infra\_snapshot123] path is not accessible on master node",  
"caused\_by" : {  
"type" : "i\_o\_exception",  
"reason" : "Unable to upload object [tests-OCPjXtarRTyfMeF3yrb31g/master.dat] using a single upload",  
"caused\_by" : {  
"type" : "amazon\_s3\_exception",  
"reason" : "amazon\_s3\_exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 66T6YC5BKWMQRWFZ; S3 Extended Request ID: jPRDDcOW0dg/TBZ98HlWEv+rxa8M5U5fK08u8aG3f8RUxeZDFFS1ZI1trpbFa7KyFh9zhiIoWTc=)"  
}  
}  
},  
"status" : 500

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 23, 2022, 8:41am UTC](https://discuss.elastic.co/t/cant-able-to-connect-s3-through-repository-s3-using-service-account-role/297986/2 "2022-03-23T08:41:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
