I'm trying to setup S3 backup with Elasticsearch 1.1.0 new snapshot feature.
For that I installed the cloud-aws plugin https://github.com/elasticsearch/elasticsearch-cloud-aws#s3-repository I followed this instruction by adding my bucket like that : curl -XPUT 'http://localhost:9200/_snapshot/mybucket' -d '{ > "type": "s3", > "settings": { > "bucket": "mybucket", > "region": "us-west-2" > } > }' > And in* elasticsearch.yml* : cloud: > aws: > access_key: xxxxxxxxxxxxx > secret_key: xxxxxxxxxx > region: us-west-2 > > repositories: > s3: > region: us-west-2 > private-bucket: > bucket: mybucket > access_key: yyyyyyyyyyyyyyyyyyy > secret_key: yyyyyyyyyyyyyyyyyyy > When I try to create the snapshot : curl -s -XPUT "localhost:9200/_snapshot/mybucket/snapshot_2?wait_for_completion=true" I get : {"error":"SnapshotCreationException[[mybucket:snapshot_2] failed to create snapshot]; nested: IOException[Failed to get [snapshot-snapshot_2]]; nested: AmazonS3Exception[Status Code: 403, AWS Service: Amazon S3, AWS Request ID: xxxxxxxx, AWS Error Code: AccessDenied, AWS Error Message: Access Denied]; ","status":500} My default access/secret key does not have access to this bucket, so I have to use private-bucket. But I don't know how to make this work. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/98db6110-17fe-4809-9d41-26277ed91595%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
