Skip to content

Commit 77143f0

Browse files
committed
Add comment about snapshot/restore if bucket does not exist
closes #84
1 parent 34e6d73 commit 77143f0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,20 @@ You may further restrict the permissions by specifying a prefix within the bucke
181181

182182
```
183183

184+
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:
185+
186+
```js
187+
{
188+
"Action": [
189+
"s3:CreateBucket"
190+
],
191+
"Effect": "Allow",
192+
"Resource": [
193+
"arn:aws:s3:::snaps.example.com"
194+
]
195+
}
196+
```
197+
184198
## Testing
185199

186200
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:

0 commit comments

Comments
 (0)