Skip to content

Commit 2fe0192

Browse files
authored
BUILD-17302 AWS EC2 credential retrieval 404s in Drivers CI (#1218)
1 parent 3bc853a commit 2fe0192

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.evergreen/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,18 @@ functions:
10491049
# Remove all Docker images
10501050
docker rmi -f $(docker images -a -q) &> /dev/null || true
10511051
1052+
"teardown_aws":
1053+
- command: shell.exec
1054+
params:
1055+
shell: "bash"
1056+
script: |
1057+
${PREPARE_SHELL}
1058+
cd "${DRIVERS_TOOLS}/.evergreen/auth_aws"
1059+
if [ -f "./aws_e2e_setup.json" ]; then
1060+
. ./activate-authawsvenv.sh
1061+
python ./lib/aws_assign_instance_profile.py
1062+
fi
1063+
10521064
"build release":
10531065
- command: shell.exec
10541066
type: test
@@ -1144,6 +1156,7 @@ post:
11441156
- func: "upload mo artifacts"
11451157
- func: "upload test results"
11461158
- func: "stop mongo-orchestration"
1159+
- func: "teardown_aws"
11471160
- func: "cleanup"
11481161
- func: "teardown_docker"
11491162

0 commit comments

Comments
 (0)