@@ -22,6 +22,11 @@ timeout:
22
22
- " -la"
23
23
24
24
functions :
25
+ " assume secrets manager role " : &assume_secrets_manager_role
26
+ - command : ec2.assume_role
27
+ params :
28
+ role_arn : ${DRIVERS_SECRETS_ARN}
29
+
25
30
" fetch source " :
26
31
# Executes git clone and applies the submitted patch, if any
27
32
- command : git.get_project
@@ -78,9 +83,7 @@ functions:
78
83
bash ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
79
84
80
85
" bootstrap mongohoused " :
81
- - command : ec2.assume_role
82
- params :
83
- role_arn : ${DRIVERS_SECRETS_ARN}
86
+ - << : *assume_secrets_manager_role
84
87
- command : shell.exec
85
88
params :
86
89
add_expansions_to_env : true
@@ -97,9 +100,7 @@ functions:
97
100
docker ps
98
101
99
102
" run tests " :
100
- - command : ec2.assume_role
101
- params :
102
- role_arn : ${DRIVERS_SECRETS_ARN}
103
+ - << : *assume_secrets_manager_role
103
104
- command : subprocess.exec
104
105
type : test
105
106
params :
@@ -137,9 +138,7 @@ functions:
137
138
- command : timeout.update
138
139
params :
139
140
exec_timeout_secs : 1800
140
- - command : ec2.assume_role
141
- params :
142
- role_arn : ${DRIVERS_SECRETS_ARN}
141
+ - << : *assume_secrets_manager_role
143
142
- command : subprocess.exec
144
143
type : test
145
144
params :
@@ -358,9 +357,7 @@ functions:
358
357
rm -rf ./node_modules/@aws-sdk/credential-providers
359
358
360
359
" run atlas tests " :
361
- - command : ec2.assume_role
362
- params :
363
- role_arn : ${DRIVERS_SECRETS_ARN}
360
+ - << : *assume_secrets_manager_role
364
361
# This creates secrets-export.sh, which is later sourced by run-tests.sh
365
362
- command : subprocess.exec
366
363
params :
@@ -380,9 +377,7 @@ functions:
380
377
- .evergreen/run-atlas-tests.sh
381
378
382
379
" run socks5 tests " :
383
- - command : ec2.assume_role
384
- params :
385
- role_arn : ${DRIVERS_SECRETS_ARN}
380
+ - << : *assume_secrets_manager_role
386
381
- command : subprocess.exec
387
382
type : test
388
383
params :
@@ -404,9 +399,7 @@ functions:
404
399
- .evergreen/run-kerberos-tests.sh
405
400
406
401
" run ldap tests " :
407
- - command : ec2.assume_role
408
- params :
409
- role_arn : ${DRIVERS_SECRETS_ARN}
402
+ - << : *assume_secrets_manager_role
410
403
- command : subprocess.exec
411
404
type : test
412
405
params :
@@ -445,11 +438,6 @@ functions:
445
438
446
439
bash ${PROJECT_DIRECTORY}/.evergreen/run-tls-tests.sh
447
440
448
- " assume secrets manager role " :
449
- - command : ec2.assume_role
450
- params :
451
- role_arn : ${DRIVERS_SECRETS_ARN}
452
-
453
441
" run aws auth test with regular aws credentials " :
454
442
- command : subprocess.exec
455
443
type : test
@@ -746,9 +734,7 @@ functions:
746
734
- ${PROJECT_DIRECTORY}/.evergreen/install-mongodb-client-encryption.sh
747
735
748
736
" build and test alpine FLE " :
749
- - command : ec2.assume_role
750
- params :
751
- role_arn : ${DRIVERS_SECRETS_ARN}
737
+ - << : *assume_secrets_manager_role
752
738
- command : subprocess.exec
753
739
type : test
754
740
params :
0 commit comments