@@ -145,7 +145,10 @@ functions:
145145 env :
146146 MONGODB_VERSION : ${MONGODB_VERSION}
147147 include_expansions_in_env : [TOPOLOGY, AUTH, SSL, ORCHESTRATION_FILE,
148- REQUIRE_API_VERSION, LOAD_BALANCER]
148+ REQUIRE_API_VERSION, LOAD_BALANCER,
149+ # Needed to download "latest"/"latest-build" from the private S3
150+ # bucket (DRIVERS-3628). Any other version needs no AWS access.
151+ AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
149152 args : ["${DRIVERS_TOOLS}/.evergreen/run-mongodb.sh", "start"]
150153 - command : expansions.update
151154 params :
@@ -166,6 +169,9 @@ functions:
166169 params :
167170 shell : bash
168171 working_dir : " src"
172+ # Needed to download "latest"/"latest-build" from the private S3
173+ # bucket (DRIVERS-3628). Any other version needs no AWS access.
174+ include_expansions_in_env : [AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
169175 script : |
170176 ${PREPARE_SHELL}
171177 export CSOT_SPEC_TESTS=1
@@ -178,6 +184,9 @@ functions:
178184 params :
179185 shell : bash
180186 working_dir : " src"
187+ # Needed to download "latest"/"latest-build" from the private S3
188+ # bucket (DRIVERS-3628). Any other version needs no AWS access.
189+ include_expansions_in_env : [AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
181190 script : |
182191 ${PREPARE_SHELL}
183192 export OTEL_SPEC_TESTS=1
@@ -280,6 +289,9 @@ functions:
280289 params :
281290 shell : bash
282291 working_dir : " src"
292+ # Needed to download "latest"/"latest-build" from the private S3
293+ # bucket (DRIVERS-3628). Any other version needs no AWS access.
294+ include_expansions_in_env : [AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
283295 script : |
284296 ${PREPARE_SHELL}
285297 TEST_CMD="bundle exec rake driver_bench" PERFORMANCE_RESULTS_FILE="$PROJECT_DIRECTORY/perf.json" .evergreen/run-tests.sh
@@ -302,6 +314,9 @@ functions:
302314 params :
303315 shell : bash
304316 working_dir : " src"
317+ # Needed to download "latest"/"latest-build" from the private S3
318+ # bucket (DRIVERS-3628). Any other version needs no AWS access.
319+ include_expansions_in_env : [AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
305320 script : |
306321 ${PREPARE_SHELL}
307322 if [ -n "${FLE}" ]; then
0 commit comments