Hey,
I am trying to add snapshots using S3 but something ain't right. This are the steps I have made:
- Installing ElasticSearch, version 6.3.0
- Installing repository-s3 plugin, version 6.3.0
- Adding access/secret key to keystore
- Created a bucket in S3 name armis-es-snapshots
- Created a folder inside this bucket name demo_snapshots
- Performing the following request:
PUT http://localhost:9200/_snapshot/demo_snapshot
{
"settings": {
"bucket": "armis-es-snapshots",
"base_path": "demo_snapshots",
"endpoint": "s3.us-east-1.amazonaws.com"
},
"type": "s3"
}
as a result, tests-XXX folder has been created with master.dat-temp file inside it, but i get the following error:
{
"error": {
"root_cause": [
{
"type": "repository_verification_exception",
"reason": "[demo_snapshot] path [demo_snapshots] is not accessible on master node"
}
],
"type": "repository_verification_exception",
"reason": "[demo_snapshot] path [demo_snapshots] is not accessible on master node",
"caused_by": {
"type": "i_o_exception",
"reason": "com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: EA7DF344CB6FCE75; S3 Extended Request ID: NHCbI+PHMppAcNuw6iKFJ0yR8W9vmjV1LMQqVM6umA4iQZSGopDsRQyToem0dZ8CDJ6Lxv+xMyw=), S3 Extended Request ID: NHCbI+PHMppAcNuw6iKFJ0yR8W9vmjV1LMQqVM6umA4iQZSGopDsRQyToem0dZ8CDJ6Lxv+xMyw=",
"caused_by": {
"type": "amazon_s3_exception",
"reason": "Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: EA7DF344CB6FCE75; S3 Extended Request ID: NHCbI+PHMppAcNuw6iKFJ0yR8W9vmjV1LMQqVM6umA4iQZSGopDsRQyToem0dZ8CDJ6Lxv+xMyw=)"
}
}
},
"status": 500
}
I thought it my permission so si changed the bucket permissions to full and public access but problem persist.
Any suggestion?
Thanks.