Skip to content

Commit dfc222e

Browse files
authored
CSHARP-4714: Reset EC2 instance profile at end of test if necessary. (#1184)
1 parent 8472bff commit dfc222e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

evergreen/evergreen.yml

+10
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,16 @@ functions:
959959
python bottle.py fake_azure:imds
960960
961961
cleanup:
962+
- command: shell.exec
963+
params:
964+
shell: "bash"
965+
script: |
966+
${PREPARE_SHELL}
967+
cd "${DRIVERS_TOOLS}/.evergreen/auth_aws"
968+
if [ -f "./aws_e2e_setup.json" ]; then
969+
. ./activate-authawsvenv.sh
970+
python ./lib/aws_assign_instance_profile.py
971+
fi
962972
- command: shell.exec
963973
params:
964974
script: |

0 commit comments

Comments
 (0)