Skip to content

Commit fcaaaca

Browse files
GODRIVER-3560 Parameterize duration_seconds in assume-test-secrets-ec2-role
1 parent ce1ecf0 commit fcaaaca

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.evergreen/config.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ timeout:
2626
script: |
2727
ls -la
2828
functions:
29-
assume-test-secrets-ec2-role:
30-
- command: ec2.assume_role
29+
assume-test-secrets-ec2-role:
30+
- command: ec2.assume_rol
3131
params:
3232
role_arn: ${aws_test_secrets_role}
33+
duration_seconds: ${ec2_assume_role_duration|3600}
3334

3435
fetch-source:
3536
# Executes clone and applies the submitted patch, if any
@@ -2361,10 +2362,7 @@ task_groups:
23612362
setup_group:
23622363
- func: fetch-source
23632364
- func: prepare-resources
2364-
- command: ec2.assume_role
2365-
params:
2366-
role_arn: ${LAMBDA_AWS_ROLE_ARN}
2367-
duration_seconds: 3600
2365+
- func: assume-test-secrets-ec2-role
23682366
- command: subprocess.exec
23692367
params:
23702368
working_dir: src/go.mongodb.org/mongo-driver

0 commit comments

Comments
 (0)