From a83198e7f456ba4f53bb088f3984a2dc592d3247 Mon Sep 17 00:00:00 2001 From: Abraham Egnor Date: Thu, 29 May 2025 10:46:36 -0400 Subject: [PATCH] RUST-2224 Fix OIDC test role setup --- .evergreen/config.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 2472476c0..df014fe12 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -692,6 +692,10 @@ task_groups: - func: init test-results - func: make files executable - func: install rust + - command: ec2.assume_role + params: + role_arn: ${aws_test_secrets_role} + duration_seconds: 3600 - command: subprocess.exec params: binary: bash @@ -699,6 +703,10 @@ task_groups: AZUREOIDC_VMNAME_PREFIX: "RUST_DRIVER" args: - ${DRIVERS_TOOLS}/.evergreen/auth_oidc/azure/create-and-setup-vm.sh + include_expansions_in_env: + - AWS_ACCESS_KEY_ID + - AWS_SECRET_ACCESS_KEY + - AWS_SESSION_TOKEN teardown_task: - command: subprocess.exec params: @@ -719,6 +727,10 @@ task_groups: - func: init test-results - func: make files executable - func: install rust + - command: ec2.assume_role + params: + role_arn: ${aws_test_secrets_role} + duration_seconds: 3600 - command: subprocess.exec params: binary: bash @@ -726,6 +738,10 @@ task_groups: GCPOIDC_VMNAME_PREFIX: "RUST_DRIVER" args: - ${DRIVERS_TOOLS}/.evergreen/auth_oidc/gcp/setup.sh + include_expansions_in_env: + - AWS_ACCESS_KEY_ID + - AWS_SECRET_ACCESS_KEY + - AWS_SESSION_TOKEN teardown_task: - command: subprocess.exec params: @@ -746,11 +762,19 @@ task_groups: - func: init test-results - func: make files executable - func: install rust + - command: ec2.assume_role + params: + role_arn: ${aws_test_secrets_role} + duration_seconds: 3600 - command: subprocess.exec params: binary: bash args: - ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/setup.sh + include_expansions_in_env: + - AWS_ACCESS_KEY_ID + - AWS_SECRET_ACCESS_KEY + - AWS_SESSION_TOKEN teardown_task: - command: subprocess.exec params: