Skip to content

Commit a5c1caf

Browse files
committed
CSHARP-5585: Remove reliance on Evergreen instance profile credentials
1 parent c2bec81 commit a5c1caf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

evergreen/evergreen.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ functions:
310310
bootstrap-mongohoused:
311311
- command: shell.exec
312312
params:
313+
include_expansions_in_env:
314+
- "AWS_ACCESS_KEY_ID"
315+
- "AWS_SECRET_ACCESS_KEY"
316+
- "AWS_SESSION_TOKEN"
313317
script: |
314318
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/pull-mongohouse-image.sh
315319
- command: shell.exec
@@ -1257,6 +1261,7 @@ tasks:
12571261

12581262
- name: atlas-data-lake-test
12591263
commands:
1264+
- func: assume-ec2-role
12601265
- func: bootstrap-mongohoused
12611266
- func: run-atlas-data-lake-test
12621267

@@ -2192,9 +2197,14 @@ task_groups:
21922197
setup_group:
21932198
- func: fetch-source
21942199
- func: prepare-resources
2200+
- func: assume-ec2-role
21952201
- command: subprocess.exec
21962202
params:
21972203
binary: bash
2204+
include_expansions_in_env:
2205+
- "AWS_ACCESS_KEY_ID"
2206+
- "AWS_SECRET_ACCESS_KEY"
2207+
- "AWS_SESSION_TOKEN"
21982208
env:
21992209
LAMBDA_STACK_NAME: dbx-csharp-lambda
22002210
args:

0 commit comments

Comments
 (0)