File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,19 @@ functions:
454454 args :
455455 - " ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-scope-test.sh"
456456
457+
458+ " reset aws instance profile " :
459+ - command : shell.exec
460+ params :
461+ shell : " bash"
462+ script : |
463+ ${PREPARE_SHELL}
464+ cd "${DRIVERS_TOOLS}/.evergreen/auth_aws"
465+ if [ -f "./aws_e2e_setup.json" ]; then
466+ . ./activate-authawsvenv.sh
467+ python ./lib/aws_assign_instance_profile.py
468+ fi
469+
457470 " cleanup " :
458471 - command : shell.exec
459472 params :
@@ -1129,7 +1142,7 @@ tasks:
11291142 commands :
11301143 - func : install dependencies
11311144 vars :
1132- NODE_LTS_VERSION : 18
1145+ NODE_LTS_VERSION : 18
11331146 - func : bootstrap mongo-orchestration
11341147 vars :
11351148 VERSION : rapid
@@ -1342,6 +1355,7 @@ pre:
13421355 - func : " make files executable"
13431356
13441357post :
1358+ - func : " reset aws instance profile"
13451359 - func : " upload test results"
13461360 - func : " upload coverage report"
13471361 - func : " cleanup"
Original file line number Diff line number Diff line change @@ -406,6 +406,17 @@ functions:
406406 binary : bash
407407 args :
408408 - ${PROJECT_DIRECTORY}/.evergreen/run-mongosh-scope-test.sh
409+ reset aws instance profile :
410+ - command : shell.exec
411+ params :
412+ shell : bash
413+ script : |
414+ ${PREPARE_SHELL}
415+ cd "${DRIVERS_TOOLS}/.evergreen/auth_aws"
416+ if [ -f "./aws_e2e_setup.json" ]; then
417+ . ./activate-authawsvenv.sh
418+ python ./lib/aws_assign_instance_profile.py
419+ fi
409420 cleanup :
410421 - command : shell.exec
411422 params :
@@ -3415,6 +3426,7 @@ pre:
34153426 - func : fix absolute paths
34163427 - func : make files executable
34173428post :
3429+ - func : reset aws instance profile
34183430 - func : upload test results
34193431 - func : upload coverage report
34203432 - func : cleanup
You can’t perform that action at this time.
0 commit comments