Add comment about snapshot/restore if bucket does not exist

closes #84
This commit is contained in:
Britta Weber 2014-05-13 17:05:01 +02:00
parent 34e6d73293
commit 77143f06d9
1 changed files with 14 additions and 0 deletions

View File

@ -181,6 +181,20 @@ You may further restrict the permissions by specifying a prefix within the bucke
```
The bucket needs to exist to register a repository for snapshots. If you did not create the bucket then the repository registration will fail. If you want elasticsearch to create the bucket instead, you can add the permission to create a specific bucket like this:
```js
{
"Action": [
"s3:CreateBucket"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::snaps.example.com"
]
}
```
## Testing
Integrations tests in this plugin require working AWS configuration and therefore disabled by default. Three buckets and two iam users have to be created. The first iam user needs access to two buckets in different regions and the final bucket is exclusive for the other iam user. To enable tests prepare a config file elasticsearch.yml with the following content: