-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapplication-s3.yaml
95 lines (85 loc) · 3.88 KB
/
application-s3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Copyright 2018-2021 Crown Copyright
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# See alpakka-s3 reference.conf at https://github.com/akka/alpakka/blob/master/s3/src/main/resources/reference.conf
alpakka.s3:
# whether the buffer request chunks (up to 5MB each) to "memory" or "disk"
buffer: "memory"
aws:
# If this section is absent, the fallback behavior is
# to use the same configuration as if credentials.provider = default
credentials:
# default: as described in software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider docs,
# attempts to get the credentials from either:
# - environment variables
# - system properties
# - credentials file
# - EC2 credentials service
# - IAM / metadata
provider: default
# If this section is absent, the fallback behavior is
# to use the same configuration as if region.provider = default
region:
# static credentials
#
# provider = static
#
# This can be set to the `id` value of any of the regions defined in
# software.amazon.awssdk.regions.Region
# default-region = ""
# default: as described in software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain docs,
# attempts to get the region from either:
# - environment variables
# - system properties
# - profile file
# - EC2 metadata
provider: default
# Custom endpoint url, used for alternate s3 implementations
# To enable virtual-host-style access with Alpakka S3 use the placeholder `{bucket}` in the URL
# eg. endpoint-url = "http://{bucket}.s3minio.alpakka:9000"
# endpoint-url: https://{bucket}.amazonaws.com
# Which access style to use. Prefer to use this setting over path-style-access.
# Path-style access has been deprecated by Amazon and will not work on buckets created after September 30, 2020.
# For alternative S3 implementations (MinIO, Rados Gateway, etc.), path-style access may continue to be required.
# Possible values:
# - virtual: virtual host-style access, i.e. https://<bucket name>.s3.amazonaws.com/file/inside/bucket
# - path: path-style access, i.e. https://<region>.amazonaws.com/<bucket>/file/inside/bucket
# access-style: virtual
list-bucket-api-version: 2
# Object keys are validated to NOT use sub-directory selection with `..` to improve security.
validate-object-key: true
# Default settings corresponding to automatic retry of requests in an S3 stream.
retry-settings:
# The maximum number of additional attempts (following transient errors) that will be made to process a given
# request before giving up.
max-retries: 3
# The minimum delay between request retries.
min-backoff: 200ms
# The maximum delay between request retries.
max-backoff: 10s
# Random jitter factor applied to retry delay calculation.
random-factor: 0.0
# Settings specific to S3 multipart uploads.
multipart-upload:
retry-settings:
# The maximum number of additional attempts (following transient errors) that will be made to process a given
# request before giving up.
max-retries: 3
# The minimum delay between request retries.
min-backoff: 200ms
# The maximum delay between request retries.
max-backoff: 10s
# Random jitter factor applied to retry delay calculation.
random-factor: 0.0
data:
implementation: s3