Skip to content

Commit 13fd6e3

Browse files
authored
RUST-2224 Fix OIDC test role setup (#1381)
1 parent a82265d commit 13fd6e3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.evergreen/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,13 +692,21 @@ task_groups:
692692
- func: init test-results
693693
- func: make files executable
694694
- func: install rust
695+
- command: ec2.assume_role
696+
params:
697+
role_arn: ${aws_test_secrets_role}
698+
duration_seconds: 3600
695699
- command: subprocess.exec
696700
params:
697701
binary: bash
698702
env:
699703
AZUREOIDC_VMNAME_PREFIX: "RUST_DRIVER"
700704
args:
701705
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/azure/create-and-setup-vm.sh
706+
include_expansions_in_env:
707+
- AWS_ACCESS_KEY_ID
708+
- AWS_SECRET_ACCESS_KEY
709+
- AWS_SESSION_TOKEN
702710
teardown_task:
703711
- command: subprocess.exec
704712
params:
@@ -719,13 +727,21 @@ task_groups:
719727
- func: init test-results
720728
- func: make files executable
721729
- func: install rust
730+
- command: ec2.assume_role
731+
params:
732+
role_arn: ${aws_test_secrets_role}
733+
duration_seconds: 3600
722734
- command: subprocess.exec
723735
params:
724736
binary: bash
725737
env:
726738
GCPOIDC_VMNAME_PREFIX: "RUST_DRIVER"
727739
args:
728740
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/gcp/setup.sh
741+
include_expansions_in_env:
742+
- AWS_ACCESS_KEY_ID
743+
- AWS_SECRET_ACCESS_KEY
744+
- AWS_SESSION_TOKEN
729745
teardown_task:
730746
- command: subprocess.exec
731747
params:
@@ -746,11 +762,19 @@ task_groups:
746762
- func: init test-results
747763
- func: make files executable
748764
- func: install rust
765+
- command: ec2.assume_role
766+
params:
767+
role_arn: ${aws_test_secrets_role}
768+
duration_seconds: 3600
749769
- command: subprocess.exec
750770
params:
751771
binary: bash
752772
args:
753773
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/setup.sh
774+
include_expansions_in_env:
775+
- AWS_ACCESS_KEY_ID
776+
- AWS_SECRET_ACCESS_KEY
777+
- AWS_SESSION_TOKEN
754778
teardown_task:
755779
- command: subprocess.exec
756780
params:

0 commit comments

Comments
 (0)