You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed AwsS3Service to use one client per region and credentials combination.
Made S3Repository specify credentials if such exists in the repository settings.
Updated readme with repository specific credentials settings.
Closes#54.
Closes#55.
Closes#56.
(cherry picked from commit d4ea2dd)
Copy file name to clipboardExpand all lines: README.md
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,8 @@ The following settings are supported:
119
119
*`bucket`: The name of the bucket to be used for snapshots. (Mandatory)
120
120
*`region`: The region where bucket is located. Defaults to US Standard
121
121
*`base_path`: Specifies the path within bucket to repository data. Defaults to root directory.
122
+
*`access_key`: The access key to use for authentication. Defaults to value of `cloud.aws.access_key`.
123
+
*`secret_key`: The secret key to use for authentication. Defaults to value of `cloud.aws.secret_key`.
122
124
*`concurrent_streams`: Throttles the number of streams (per node) preforming snapshot operation. Defaults to `5`.
123
125
*`chunk_size`: Big files can be broken down into chunks during snapshotting if needed. The chunk size can be specified in bytes or by using size value notation, i.e. `1g`, `10m`, `5k`. Defaults to `100m`.
124
126
*`compress`: When set to `true` metadata files are stored in compressed format. This setting doesn't affect index files that are already compressed by default. Defaults to `false`.
@@ -131,11 +133,11 @@ The S3 repositories are using the same credentials as the rest of the S3 service
Multiple S3 repositories can be created as long as they share the same credential.
136
+
Multiple S3 repositories can be created. If the buckets require different credentials, then define them as part of the repository settings.
135
137
136
138
## Testing
137
139
138
-
Integrations tests in this plugin require working AWS configuration and therefore disabled by default. To enable tests prepare a config file elasticsearch.yml with the following content:
140
+
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:
139
141
140
142
```
141
143
cloud:
@@ -147,10 +149,17 @@ repositories:
147
149
s3:
148
150
bucket: "bucket_name"
149
151
region: "us-west-2"
152
+
private-bucket:
153
+
bucket: <bucket not accessible by default key>
154
+
access_key: <access key>
155
+
secret_key: <access key>
156
+
remote-bucket:
157
+
bucket: <bucket in other region>
158
+
region: <region>
150
159
151
160
```
152
161
153
-
Replaces `access_key`, `secret_key`, `bucket` and `region` with your settings. Please, note that the test will delete all snapshot/restore related files in the specified bucket.
162
+
Replace all occurrences of `access_key`, `secret_key`, `bucket` and `region` with your settings. Please, note that the test will delete all snapshot/restore related files in the specified buckets.
0 commit comments