Skip to content

Commit 37ba243

Browse files
committed
feat: increase s3 concurrency
1 parent 1687671 commit 37ba243

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

salt/aws/files/aws-config.local

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[profile sync]
2+
s3 =
3+
max_concurrent_requests = 50
4+
multipart_threshold = 64MB
5+
multipart_chunksize = 16MB

salt/aws/files/sync-to-s3.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export AWS_ACCESS_KEY_ID
1111
export AWS_SECRET_ACCESS_KEY
1212
export AWS_DEFAULT_REGION
1313

14+
export AWS_CONFIG_FILE=/home/sysadmin-tools/aws-config.local
15+
export AWS_PROFILE=sync
16+
1417
if [ "$LOGNAME" != "root" ]; then
1518
echo "ERROR: Execution of $0 stopped as not run by user root!"
1619
exit 2

salt/aws/init.sls

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,11 @@ awscli:
2525
{{ set_config('aws-settings.local', 'AWS_ACCESS_KEY_ID', pillar.aws.access_key) }}
2626
{{ set_config('aws-settings.local', 'AWS_SECRET_ACCESS_KEY', pillar.aws.secret_key) }}
2727
{{ set_config('aws-settings.local', 'AWS_DEFAULT_REGION', pillar.aws.region) }}
28+
29+
/home/sysadmin-tools/aws-config.local:
30+
file.managed:
31+
- source: salt://aws/files/aws-config.local
32+
- mode: 640
33+
- replace: False
34+
- require:
35+
- file: /home/sysadmin-tools/bin

0 commit comments

Comments
 (0)