Skip to content

Commit 66f3552

Browse files
authored
CSHARP-5585: Remove reliance on Evergreen instance profile credentials (#1704)
1 parent 4ecb179 commit 66f3552

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
@@ -318,6 +318,10 @@ functions:
318318
bootstrap-mongohoused:
319319
- command: shell.exec
320320
params:
321+
include_expansions_in_env:
322+
- "AWS_ACCESS_KEY_ID"
323+
- "AWS_SECRET_ACCESS_KEY"
324+
- "AWS_SESSION_TOKEN"
321325
script: |
322326
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/pull-mongohouse-image.sh
323327
- command: shell.exec
@@ -1262,6 +1266,7 @@ tasks:
12621266

12631267
- name: atlas-data-lake-test
12641268
commands:
1269+
- func: assume-ec2-role
12651270
- func: bootstrap-mongohoused
12661271
- func: run-atlas-data-lake-test
12671272

@@ -2047,9 +2052,14 @@ task_groups:
20472052
setup_group:
20482053
- func: fetch-source
20492054
- func: prepare-resources
2055+
- func: assume-ec2-role
20502056
- command: subprocess.exec
20512057
params:
20522058
binary: bash
2059+
include_expansions_in_env:
2060+
- "AWS_ACCESS_KEY_ID"
2061+
- "AWS_SECRET_ACCESS_KEY"
2062+
- "AWS_SESSION_TOKEN"
20532063
env:
20542064
LAMBDA_STACK_NAME: dbx-csharp-lambda
20552065
args:

0 commit comments

Comments
 (0)